Search found 3 matches
- Tue Jun 22, 2021 5:01 pm
- Forum: General discussion
- Topic: How read channels 1-8 on ADC1
- Replies: 6
- Views: 2592
Re: How read channels 1-8 on ADC1
some faqs may be relevant https://www.stm32duino.com/viewtopic.php?f=2&t=3 https://www.stm32duino.com/viewtopic.php?f=2&t=301 and normally to use the adc it is pinMode(pin, INPUT_ANALOG); uint16_t adc_val = analogRead(pin); INPUT_ANALOG is not documented in the Arduino docs. Only options ar...
- Tue Jun 22, 2021 5:00 pm
- Forum: General discussion
- Topic: How read channels 1-8 on ADC1
- Replies: 6
- Views: 2592
Re: How read channels 1-8 on ADC1
... I have 8 ADC lines I want to read from PA0 - PA7. When I read from PA2 it will show the same reading as PA1 and when I read from PA3 it will show the same ADC reading as PA0. ... If you leave the analog pins open, they are floating at a very high impedance; static charges on the circuit board a...
- Mon Jun 21, 2021 9:20 pm
- Forum: General discussion
- Topic: How read channels 1-8 on ADC1
- Replies: 6
- Views: 2592
How read channels 1-8 on ADC1
I am using a nucleo board with a ST32 103RB micro and the Arduino IDE to upload my sketch. I have 8 ADC lines I want to read from PA0 - PA7. When I read from PA2 it will show the same reading as PA1 and when I read from PA3 it will show the same ADC reading as PA0. I am not sure why that is or I don...