Skip to main content

Posts

Showing posts with the label Microcontroller

Up-counting 7-segment using Arduino

This project is about 1 digit 7-segment that is connected to Arduino. This 7-segment counts from 0 to 9 every 1 second The delay is optional and you can change it in the program. Firstly you have to define a string to show which pins of 7-segment will be on in every circle. It depends on whether your 7-segment is common cathode or common anode. For example if you want to write 7 in 7-segment you should turn on three (A,B,C) segments of it. turning on the segments does not mean you must connect it in 5v. It depend on your 7-segment whether it was CA or CC. Mine was CA so whenever I wanted to turn it on I connected that special segment to 0v or ground. Download link: https://drive.google.com/open?id=1XmKQOCeNbkfAc3I3XwSb8M4fwXhutfWX

Distance measurement with ultrasonic sensor using Arduino Uno

This project is about measuring the distance between an ultrasonic sensor and a surface. HC-SR04 is an ultrasonic sensor with 4 pins. Two for + and - of the supply. Trigger pin which is responsible for emitting ultrasonic waves and echo pin which is used for receiving waves. Download link: https://drive.google.com/open?id=19PL5qU8bKDY2yc17RJ3dPg0v_cDOdicG

Up-Counting 1 digit 7-segment using ATmega16 AVR

This project is about 1-digit common anode 7-segment that its value increases when you press the button connected to PIND6 that is used as an input. Numbers are from 0 to 9. We have to define an array to write on 7-segment. There is a simulation in Proteus. Download link

Switch on and off a LED with AVR ATmega16

This project is about turning on and off one led by ATmega16 AVR microcontroller. One push button is used for turning LED on and one is used for turning it off. There is a simulation in Proteus.   Download link