Skip to main content
JDIRI.1
Associate II
February 1, 2023
Solved

Wb55 - How to read values from ADC

Hi everybody!

Working on Martian Robot développed by VittaScience​, I need to read values coming from 5 blackline sensors to the ADC of the wb55.

I tried to analogRead() the pin but nothing...

Some ideas?

Thanks!​

This topic has been closed for replies.
Jaroslav JANOS
Jaroslav JANOSBest answer
ST Employee
February 2, 2023

Just tested on 500Kbit/s, works fine for me. Please check the wiring and SPI configuration: master mode, full duplex, datasize 10 bit and enabled NSS signal on PA4.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

11 replies

JDIRI.1
JDIRI.1Author
Associate II
February 3, 2023

Hi @Jaroslav JANOS​ ,

It works fine, thank you very mutch, I missed NSS Signal on my configuration.

Now I isolate all the values for each sensor but the values seems to fluctuate a lot with the light .

Just need to find an algorithm to detect the lines now...

Thank you!