DESIGN OF RASBERRY PI PICO BASED TRAFFIC LIGHT CONTROL USING THONNY IDE SOFTWARE IN TAMIL
Автор: TAMIL POLYTECH
Загружено: 2025-08-27
Просмотров: 340
how to make 4way traffic light control system interface board using dot PCB, LED's and 330 Ohms resister.
Design of Rasberry Pi Pico based 4way traffic light control using thonny IDE software in tamil full explanation.
Program:
from machine import Pin
from time import sleep
north_red=Pin(2,Pin.OUT)
north_yellow=Pin(3,Pin.OUT)
north_green=Pin(4,Pin.OUT)
east_red=Pin(5,Pin.OUT)
east_yellow=Pin(6,Pin.OUT)
east_green=Pin(7,Pin.OUT)
south_red=Pin(8,Pin.OUT)
south_yellow=Pin(9,Pin.OUT)
south_green=Pin(10,Pin.OUT)
west_red=Pin(11,Pin.OUT)
west_yellow=Pin(12,Pin.OUT)
west_green=Pin(13,Pin.OUT)
north_red.on()
east_red.on()
south_red.on()
west_red.on()
while True:
north_red.off()
north_yellow.off()
north_green.on()
sleep(5)
north_yellow.on()
north_green.off()
sleep(2)
north_yellow.off()
north_red.on()
east_red.off()
east_yellow.off()
east_green.on()
sleep(5)
east_yellow.on()
east_green.off()
sleep(2)
east_yellow.off()
east_red.on()
south_red.off()
south_yellow.off()
south_green.on()
sleep(5)
south_yellow.on()
south_green.off()
sleep(2)
south_yellow.off()
south_red.on()
west_red.off()
west_yellow.off()
west_green.on()
sleep(5)
west_yellow.on()
west_green.off()
sleep(2)
west_yellow.off()
west_red.on()
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: