Posts

Sensor Project - Reverse Proximity Sensor

Image
Display installed and powered by vehicle My sensor project makes use of the HC-SR04 ultrasonic distance sensor, an Arduino Uno, Arduino Nano and a 16x2 LCD display. The purpose of this project is to provide distance data to the driver when reversing and also warn them when they're getting dangerously close to an object with a series of different tones from the buzzer and a warning to stop on display.  The Arduino Nano is dedicated to reading from the sensor and calculating the distance before sending it over a serial link to the Arduino Uno. The Uno is dedicated to controlling the display, buzzer and changing the bar graph. The original plan was to run multiple sensors from the Nano, however the sensors I ordered from AliExpress didn't arrive in time for testing but there is still plenty of room for expandability. The display shows the distance reading as reported by the Arduino Nano, along with a basic bar graph with range between  140cm and 20cm. After 20cm it displ...

LED Project - Das Blinkenlights

Image
Aesthetic view of my breadboard. My project features a total of 12 individually addressable LEDs, two buttons and 12 resistors to protect the LEDs from over-current. My project runs two simple 'for' loops that increment between pins 2 and 13, the loops will turn on one LED, turn it off again and then repeat with the next LED addressed by the next pin, this gives an illusion of the light bouncing up and down on the breadboard. The buttons come into play by adjusting the delay between turning an LED on or off by 20 millisecond increments. The red button (pin A1) will add 20ms to the delay, slowing down the light cycle and the green button (pin A0) will remove 20ms from the delay, with a minimum of 20ms as not to stop the cycle altogether.   Top down view of my project. Fritzing Breadboard View Fritzing Schematic View    Demonstration video Code used in project https://henry.otago.online/files/LEDProject1/LEDProject1.ino Reflectio...

Task 4 - Atmel Microprocessor Research

Image
The name of the chip on my arduino board is the Atmel ATmega328P Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Datasheet.pdf