Skip to main content

Posts

Showing posts with the label Arduino

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

Star Delta Starter with Arduino Nano

This project about star delta connection for a three phase motor. I did'n have three phase induction motor so I used three signal lamp instead. In star delta connection first, star connection actives and then after a while delta connection will active. The time between star and delta connection depends on how powerful your motor is. In this project it is possible to change the time from 0 second to 100 seconds by potentiometer connected to A0. I used Arduino Nano instead of any industrial PLC. The outputs of the Arduino is connected to the relay board and then it is connected to contactors. Contactor is a devise that can connect three phase voltage to an induction motor. There is a video of how this circuit works. Download link: https://drive.google.com/open?id=1rkaE7WTPg93gEQ8l0ehYUHintUx-WcQG

Joystick module by Arduino Uno

This project is about connecting joystick module to an Arduino. Joystick is like two potentiometer that gives analog value. My joystick has two dimensions, One is X axis and the second is for Y axis. The analog value of the joystick is from 0v to 5v that you can read it directly by analog pins of your controller. There is an additional digital switch on joystick like the usual on/off switches. I used 3 led's, the brightness of the two first led's depend on the value that joystick gives. The third led is for that digital switch that mentioned. Download link: https://drive.google.com/open?id=1JrW17CRuOFuVAfMn9MnDMbYLmpaNFCz0

I2C LCD with Arduino Nano

This project is about connecting 16*2 LCD thorough I2C protocol with Arduino Nano. The advantage of using I2C protocol for connecting LCD is that it uses only 2 ports of your Arduino while if you want to connect LCD directly to the arduino  it uses at least 6 ports. There is a shield of course to translate I2C commands for LCD and first you need to get I2C library for arduino and install it on your IDE. Download link: https://drive.google.com/open?id=1iuaCFyH-HoGGssdio45KEtStTvtxIGD2

Servo motor by Arduino Nano

This project is about running a servo motor using Arduino Nano. My servo is SG90 and that is a really small servo motor. I did not supply my servo with 5v output of Arduino because that takes much current from Arduino Nano. Instead, I used LM7805 regulator for my servo. There is a potentiometer (variable resistor) I used to change the position of the servo. Arduino Nano reads the analog voltage that resistor creates and thorough PWM port changes the position of the servo. My servo can be in position from 0 to 180. There is a simulation in Proteus. Download link: https://drive.google.com/open?id=1e6uJFJrLWT9k6E190ZGtiRgQX9Ur2c1D

Serial communication between two Arduino

This project is about how to connect two Arduinos (Nano,Uno) to each other using serial communication. There are a few functions in Arduino that you can use to run the serial communication. I used Arduino Nano as the sender and Arduino Uno as the receiver. A keypad is connected to the sender and data has been reading by Nano and then will be sent to Uno. Thorough a 16*2 LCD I displayed what was typed on the keypad. There is a simulation available in Proteus. Download link: https://drive.google.com/open?id=1TdGhiphgKJcVPiI26kdwaeEatyebT4Hr

Write on 7-segment with 74LS48 by Arduino Uno

This post is about writing numbers on 2-digit 7-segment with 74LS48. The advantage of this IC is that you do not need to build numbers by yourself, this IC will do it so you will be able to use only 4 ports of Arduino ( instead of 7 ports if you want to create numbers manually). Probably, you may have restriction at the number of ports available, in this case 74LS48 can be used. There is a simulation in Proteus. IC information was taken from datasheet. Download link: https://drive.google.com/open?id=1jsy-aLKcxzPkAxLYAhSo6Jq-oGl1CLEG

Write on 4-digit 7-segment with keypad by Arduino Nano

This post is about how to use a keypad for writing on 4-digit 7-segment. The program can be used when you want to add number to your program. I keep the number into a variable and also it can be seen on your 7-segment at the same time. I did not use any special 7-segment IC driver and it is running just by refreshing all the time. You can also clear the number and add it again. Download link: https://drive.google.com/open?id=1e29RDuZhZqAuWE6OfeeHcSGl3NJpqpSV

Decimal calculator with Arduino Nano

This project is about how to build a calculator with Arduino. It supports + - * / operations with decimal numbers. two line 16*2 LCD shows what is typing. Download link: https://drive.google.com/open?id=1tXfFqSuifzxox8nzSSqU3M-YQ7nUOfZS

Light detecting with LED feedback

I connected 4 LED's to the Arduino as a feedback mechanism. When there is no light 4 LED's are on. A little light turns 3 LED's on and at next stages we have 2 or 1 LED on. When there is sufficient light detected by LDR there is no on LED. LED's will be on randomly. for example when we have to turn two LED's on it's not dictated that 1st or 2nd LED should be on. I used rand() function to choose which LED's should be on in each state. Download link: https://drive.google.com/open?id=1yv0Gs78GbgMPImtSj3OpyhwSoRnBpqv0

Arduino tutorials (2): Input and Output in Arduino

In this video I am talking about how to have an input and an output for Arduino boards. As input I used a push button and for output I used a LED. This video covers programming, configuration, wiring and simulation in Proteus. here is the program in Arduino: https://drive.google.com/open?id=1-wfU1H1zvWaf27jsJzT5NyJJpoHJ2fEy here is the schematic in Proteus: https://drive.google.com/open?id=1X4uUuXNBkGUL7xXUOHPM1zK26VU_vwgx

Up and down blinking LED's with push button control

In this post I shared a project which is about 6 LED's that will blinking one after the other and there is a push button to control in which direction they should be blinking. You can change both the direction of blinking and the speed of it. here is the link for program in Arduino: https://drive.google.com/open?id=1_tF1ELb0vY0JKHIEEFmTWrlzFBZSfemQ here is the link for schematic in Proteus: https://drive.google.com/open?id=1WIchbD0DIo-WrI8ogTbAL06EQGXqBc5F

Arduino tutorials (1) : blinking LED

In this video I am talking about how to build a blinking LED. It describes wiring, configuration and how to write your program Arduino board. The time of blinking can be changed in the program. Here is the program in Arduino: https://drive.google.com/open?id=1mNxAlIeSyK-wm3hp7v7uiENOxlJGlxbj Here is the link for schematic in Fritzing: https://drive.google.com/open?id=1CFtxLTIj4aGyv_Potf1bR9VY9StAogEJ

Arduino tutorials (0) : Introduction to Arduino uno

This video is the first video of the Arduino tutorials collection. It is about Arduino uno board and some electronic elements on it. I discussed USB port, power port, inputs and outputs, LED's, reset button, etc.

LCD in Arduino

In this project we have a 16*2 LCD with Arduino. There are some special simple commands if you want to write a statement in LCD. First you have to add #include <LiquidCrystal.h> library for using LCD and then by some simple commands as described in the program you can write on it. here is the program in Arduino: https://drive.google.com/open?id=1ygOaUlaDdNTDn7nOOupW-xTplsMoC4dk

LM35 temperature sensor with Arduino

This project is about measuring the temperature with LM35. LM35 is a quite an accurate temperature sensor with good precision.There are two different ways for wiring LM35 and if you see the manual you will find that.I used the first wiring structure. Temperature is displayed on 4 digit 7 segment. Download link: https://drive.google.com/open?id=17e2DI4lpyCIK9ZRyFLFc_5z1XRjX2Idb

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