Close
0%
0%

Ultrasonic Distance Sensor on Attiny817

Using the Attiny817 core independent peripherals to implement an ultrasonic distance sensor entirely in hardware.

Similar projects worth following
This project implements the core independent peripherals of the Attiny817 to get a fully autonomous time of flight measured distance using a ultrasound transducer. The AVR core is used to set up the device, and outputs the distance in cm on the OLED screen available on the designed hardware. The PCB also contains a temperature sensor that is used to set the correct speed of sound for distance calculations. The temperature sensor is sampled autonomously by the ADC and fires interrupt when temperature is outside of an allowed window, where the used speed of sound is updated.

An optimized version is currently under 1kB of flash when using the IAR workbench and will work with the kickstarter license.

ultrasound_1kB_challange.zip

IAR Workbench project

x-zip-compressed - 283.24 kB - 11/25/2016 at 09:58

Download

  • 1 × ATtiny817-MNRES AVR microcontroller
  • 1 × VG-2864KSWEG01 128x64 OLED Screen
  • 1 × MCUSD16A40S12R0 40kHz Ultrasonic transducer
  • 1 × BC847B Discrete Semiconductors / Transistors, MOSFETs, FETs, IGBTs
  • 1 × MCP6292-E/SN Amplifier and Linear ICs / Operational Amplifiers

View all 7 components

Enjoy this project?

Share

Discussions

Jarrett wrote 11/24/2016 at 21:36 point

Gah. Attiny board with a Microchip logo. Weeeeeird.

This is going to take some getting used to.

  Are you sure? yes | no

Bent Fladmark wrote 11/25/2016 at 08:48 point

Yupp. Takes some getting used to, more changes than just the logo to say the least. :P

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

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