-
Software updates and a spinning HC-SR04
05/30/2020 at 13:07 • 0 commentsSome stuff done on the atmega328 and raspberry:
* ADC filtering on the atmege328. Just an average that updates every 64 samples.
* PWM signals for the motors. Turns out these cheap 2 euro motors don't really control that well so you can only reliably get full speed or something close to half speed.
* A DS18B20 temperature sensor is added directly to the raspberry pi header. Works great out of the box. I had 2 but I destroyed one by reading the pinning wrong and pumping half an Amp through it for a few seconds.
* Servo control added to the atmega328.
* Auto reset wacthdog for the atmega328 when there's been no I2C communication for 500 ms.
2 Of the 8 bit timers on the atmega328 are in use now. One for the motor PWM and one for the servo control. The free 16 bit timer is going to be used to get the distance from the HC-SR04 module you see turning around there.
I also took a moment to measure the speed. It's about 0.95 m/s (3.42 km/h)
next up:
- distance measurement
- distance calibration vs ambient temperature
- ROS and point cloud
- SLAM
- neopixels
(not necessarily in that order)
-
First drive
05/03/2020 at 12:11 • 0 commentsI've got around to soldering the pi-hat board. So now there's a atmega328p on top of the PI. It can be programmed by the pi via SPI.
The atmega controls the motor driver and monitors the battery voltage and the outputs of the current sensors. Communication with the PI is done via I2C (SMBus)I wrote a quick and dirty python program to control the whole thing via wireless keyboard so I could have a little test drive:
video:
The noise is actually quite loud, slightly softer than a robot vacuum.Cable management is something for later :D
-
First simple base
04/01/2020 at 14:04 • 0 commentsSecond iteration of the tracks design. Now with 1/2 gear reduction.
-
Track assemblies
03/22/2020 at 09:37 • 0 commentsOne 3d printed track assembly almost done