Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Problem with analog input

(you are viewing a thread; or go back to list of threads)

Problem with analog input (by Antonio)
Hello I made a small program for arduino and I have compiled arduino sketch and the analog part does not work which can be the problem.

If I compile hex-asm if that works.

Regards
Thu Jan 18 2018, 17:55:37, download attachment marchat1.rar
(no subject) (by Ihor Nehrutsa)
I see a bug. Will fix in next release.
Thu Jan 18 2018, 19:02:45
(no subject) (by Ihor Nehrutsa)
Re-tested: There is no ADC bug in v4.3.5

And you may need to comment
wdt_enable(WDTO_2S);
in marchat1.cpp line 174
Thu Jan 18 2018, 20:15:42
(no subject) (by Antonio)
Thank you very much Ihor Nehrutsa.


Regards.
Fri Jan 19 2018, 01:18:33
Help (by Ahmad sakr)
Dear friends
Could you please tell me how to comment wdt_enable(WDTO_2S);
Sorry I have no experience in arduino ide and that is the cause who makes me interested in ldmicro
Waiting for your help
Mon Jan 22 2018, 02:48:00
(no subject) (by Antonio)
No he conseguido soulucionar el problema la parte digital si que funciona pero la parte analogica no funciona.

Regards.
Mon Jan 22 2018, 08:21:45
(no subject) (by Antonio)
I have not been able to solve the problem, the digital part does work, but the analog part does not work.

Regards.
Mon Jan 22 2018, 08:22:29
Bug in analog arduino (by Ahmad sakr)
Dear Ihor Nehrutsa
I tested the above program marchat1 physical in arduino unknown board using ldmicro 436 and arduino 185 uploaded good (uploading done) and digital or but analog not responding
I also test adc.ld from samples also same in physical test gives digital or but analog not working
May be there is a bug in analog with arduino
You will see in the attachment add files after compiling for arduino sketch
Thanks very much
Mon Jan 22 2018, 14:56:59, download attachment adc.rar
(no subject) (by Ihor Nehrutsa)
to Antonio
Mon Jan 22 2018, 17:22:16, download attachment marchat1png.zip
(no subject) (by Antonio)
Hello Ihor Nehrutsa with Arduino Ide does not work.

Watch the videos.

https://www.dropbox.com/s/yo3ucwtvwo4wbsz/Ide%20Arduino.mp4?dl=0

But with hex file if that works.

https://www.dropbox.com/s/cae1wx36sxr5h16/hex%20file.mp4?dl=0

Thank you so much for everything.
Forgive for the inconvenience.

Regards.
Mon Jan 22 2018, 18:25:23
There is no Problem with analog input. (by Ihor Nehrutsa)
to Antonio

You have 8 LEDs to debug! Try to use them!
Use LDmicro simulation mode to view Y1, Y2 output levels.

LED1 may be ON only if X1 is pressed and X2 is unpressed!

There is no Problem with analog input.
Tue Jan 23 2018, 06:24:31, download attachment marchat1_2.ld
(no subject) (by Antonio)
Thank you very much Ihor Nehrutsa.


Regards.
Tue Jan 23 2018, 08:56:02
(no subject) (by Ahmad sakr)
Dear Ihor Nehrutsa and Antonio
I tested the last program by Ihor marshat1_2 physically it gives the same like the first one by Antonio like the one which belongs to me adc.ld. And all of them gives the same analog not working when Compil sketch to arduino
May be there is a problem.
Thanks
Regards
Tue Jan 23 2018, 14:35:42
(no subject) (by Ahmad sakr)
Dear friends
To Antonio did you get good results for analog when compiled sketch to arduino unknown physically
Until now not working with me. If you solve it tell me how please
Thanks
Regards
Wed Jan 24 2018, 01:57:12
(no subject) (by Antonio)
Hello Ahmad sakr for now I have not managed to solve the problem.

Regards.
Wed Jan 24 2018, 08:25:57
(no subject) (by CoraDias)
Hi...as per my knowledge a analog input pin with nothing wired to it is said to be a 'floating input pin' condition and will not read zero counts as the very high impedance of the input pin will be influenced by electrical noise. To test out a analog input pin wire it to ground and then it should read a 0 count value, then wire it to the 5V pin and it should read 1023 count value. If it does both then it's a functional analog input pin.
Tue Jan 30 2018, 10:17:52
(no subject) (by Ihor Nehrutsa)
Wed Jan 31 2018, 09:00:00
(no subject) (by Antonio)
Hello Ihor Nehrutsa now if it works, thank you very much.

Regards.
Wed Jan 31 2018, 09:38:37
(no subject) (by Ahmad sakr)
To Ihor Nehrutsa
Thanks very much, now. Analog working good in 4.3.7
Thanks
Thu Feb 1 2018, 01:58:14
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):