Figure out (and rewrite) the ADC (Analog to Digital Converter) to monitor battery voltage. Document the other ADC inputs so we can use them.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Server/ADC.py is an interface to an analog to digital converter. See if you can figure out what it is wired to, and what things can be read from the robot. The raspberry pi does not have any analog pins that it can read. It has to use the I2C bus to read analog values determined my another chip.
I know that it is used to implement the POWER command.
In Server/server.py, there is this code:
`
elif cmd.CMD_POWER in data:
ADC_Power=self.adc.recvADC(2)*3
try:
self.send(cmd.CMD_POWER+'#'+str(ADC_Power)+'\n')
except:
pass
`
You could look in the client code and see what it does with it. (maybe just displays it?)
It *could* be accessing the voltage reading of the battery, which would be very useful.
Note: You can also look at the Freenove documentation to see if it explains the POWER command output.
See if you can figure out if there are other ADC channels we could use to read some other analog values
on the robot.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.