Analog Input & D7 usage without power supply
Hello,
I wanted to test my code and came to the point where I wanted to read the Analog In Channel 1 in mA mode.
Unfortunately the sketch seems to hang at Indio.analogRead(...).
Do I need to connect a power supply for that? I currently only have my USB attached to program on the table...
Same for expansion port, I wanted to connect a DS18B20 and use 5V/GND of the port + D7 as data line. But also there it seems no 5V available if only USB is plugged in.
Can somebody confirm/give advice?
THX & BR
Hi, indeed the INDIO baseboard needs an external power supply 12/24V, it will not work on USB power alone, and same for the expansion port. This unit is desiged to run on 12/24V.
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 6/25/20, 8:03 PM |
Seen: 1469 times |
Last updated: 6/26/20, 7:41 AM |
Finally i figured out why the Indio.analogRead(...) didn't work... The Indio library contains the method float IndioClass::analogRead(int pin) There, after this->mcp342xWrite(adcConfig[pin]); a delay(sample_rate); is used. On my Industruino IND.I/O D21G the delay(...) method keeps hanging forever. I think there should be a cleanup for the library, also the Serial.println(...) sould be replaced by SerialUSB.println(...)