Blog Arşivleri

Traffic Lights and Pedestrian Way Control System with MSP430

Hi, at my this i created a system for traffic lights and pedestrian way control.

You can also watch my Youtube presentation.

Equipments that used in this project are;
+ MSP430 Chipset
+ GLCD (Nokia 5110)
+ Distance Sensor (HCSR-04)
+ Buzzer
+ LEDs
+ Buttons

20150101_120527

Procedure of my system is like this;
I have two counters. One stars 60 to zero , another one counts
30 to zero. If we are in the first time interval ( 60 -> 0 ) cars can use their way
but pedestrians should wait until time is end. We can see the down counting from
the screen. If any person attempts to pass across the street ( from car’s road ),
the distance sensor that located edge of car’s road, will war by buzzer.

After first time interval car’s passed. Another countdown starts. (from 30 -> zero )
Cars should stop and people can pass across the street.

Third past is interrupt section. At the late hours traffic won’t be busy so we don’t need
LCD, sensors, buzzer and etc. We just need a blinking LED for warning. That also reduce
the power consupmtion.

P.s. You can find the port interrupt program and my lcd commands from early posts.

Best wishes.

Simple Remote Control

At my this writing, i will introduce you a transmitter – reciever pack.
I bought this pack for Aliexpress.com . It costs $3.24 for a pack (1 reciever + 1 transmitter)
At the reciver side it has four pins for four channels , 2 pins for power supply (GND – VCC,5V)
and one for antenna.

Remote Control

Remote Control

The transmitter side is an remote control shaped with antenna and four buttons.
I did not made a complex project but i coulnd’t stand without use.
At my experiment I did not connect any external antenna at recivever side
And at the open area it works fine (i tried about 5 meter distances).
But sometimes when i pressed the button, my output led blinks instead of a certain ON state.
i thinks it occurs because of not existance of an external antenna.

I introducd this equipment beacuse it can be useful in your projects.
After this, it depends on your imaginations.
Good Luck.

Shield Design for Arduino Mega 2560 R3

As you noticed my 3.2″ TFT screen has 40 terminal pin and almost all of them will be used.
It is not an plug-in and use screen. So i have desing and shield for my LCD . Be aware to enlarge
other pins. Because after our shield design unused pins must not be under the shield as discarded (inert).

Another important point is; Arduino’s output high level is 5v but screens high input is 3.3V.
(I mentioned about that before). I used 330 ohms resistor and 1K ohms in series as a voltage divider.

PCB Design

3D

My design can be shown from photos.

3.2″ TFT LCD (new)

In my this writing i will introduce my new TFT LCD display.

Front Side

Front Side

Rear side

I bought that screen because my previous screen was not good enough. It couldn’t run all UFTF library and technical support was not sufficient. So i ordered new one from ebay, sellers name is electronics_lee . It is 3.2″ touch screen (1)

first of all i only connected TFT connections without SD card and TOUCH screen pins.
My connections are same as at “UTFT_Requirements” files in page 2 and 4. (2)

Then i faced different problems at the screen. Some random lines/strip occur aat the screen while a process happening in the screen. If you have same problem i highly recommed  to power of the screen because this lines are occur because of high voltage.

Without voltage divider resistor - while screen output is changing

Without voltage divider resistor – while screen output is changing

Without voltage divider resistor - while screen output is constant

Without voltage divider resistor – while screen output is constant

Arduino’s output high level is 5 volts and screen’s high volt is 3.3 volt but tolerated to 5 volts. I used 330 ohms and 1K ohms resisters as a voltage divider for all outputs of arduino. Divided (reduced) voltage goes to the screen.  After this correnction , screen works fine.

After arduino's output is reduced to 3.3 volts by using resistors.

After arduino’s output is reduced to 3.3 volts by using resistors.

(1) 3.2″inch TFT LCD Display module + touch panel & SD card cage for Arduinohttp://www.ebay.com/itm/3-2-inch-TFT-LCD-Display-module-touch-panel-SD-card-cage-Arduino-/271201097446?pt=LH_DefaultDomain_0&hash=item3f24d856e6

(2) Download “UTFT.rar” http://henningkarlsen.com/electronics/library.php?id=51