Rudimentary robot frame on tracks

Similar projects worth following
basically tank tracks with a raspberry pi and atmega328

Files are up on github (probably dev branch)

  • 1 × 5000 mAh lipo battery (3S2P)
  • 1 × raspberry pi 3
  • 1 × Arduino Pro Mini 328 (8 MHz)
  • 1 × XL4016 DC-DC converter
  • 1 × L9110S dual motor driver

View all 10 components

  • Software updates and a spinning HC-SR04

    Pengu MC05/30/2020 at 13:07 0 comments

    Some 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

    Pengu MC05/03/2020 at 12:11 0 comments

    I'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:


    The noise is actually quite loud, slightly softer than a robot vacuum.

    Cable management is something for later :D

  • First simple base

    Pengu MC04/01/2020 at 14:04 0 comments

    Second iteration of the tracks design. Now with 1/2 gear reduction.

  • Track assemblies

    Pengu MC03/22/2020 at 09:37 0 comments

    One 3d printed track assembly almost done

View all 4 project logs

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates