anseljh / avr-rangefinder-peripheral

Ultrasonic rangefinder to I2C peripheral adaptor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

avr-rangefinder-peripheral

Convert a HC-SR04 or compatible ultrasonic rangefinder into an easy-to-use I2C perhipheral using an ATtiny4313 microcontroller for the I2C target1 device.

Also provides a serial connection via 3.5mm audio jack for debugging, via the ATtiny4313's USART.

To Do

  • Get LED blinking
  • Get USART working for serial console debug output
  • Get rangefinder sending pulse
  • Receive echo
  • Compute distance
  • Output distance to serial console
  • Get I2C working in target mode

Footnotes

  1. Language note on "controller" and "target": https://community.nxp.com/t5/Other-NXP-Products/Alternative-inclusive-terms-for-master-and-slave-in-I2S-I2C/td-p/1244999

About

Ultrasonic rangefinder to I2C peripheral adaptor

License:MIT License


Languages

Language:C 94.5%Language:Makefile 5.5%