Perfect costumer support
TV
Solar Energy
Home & Office
Gaming
Electronics & Projects
Network
Cameras
ACEBOTT Traffic Light ModuleEasy-Plug
| BRAND: ACEBOTT |
1.Product Introduction
The traffic light module integrates three different color LEDs: red, yellow, and green. It has four pins, one of which is a common pin, and the other three pins control the operation of three different color LEDs. The common GND is connected to the GND port of the development board, and the R, Y, and G pins are connected to different I/O ports of the development board. When each R, Y, and G pin inputs a high level, the corresponding color LED will light up.
Application reference: Traffic lights, indicators, etc.
2.Parameter Specification
| Parameter | Value//Description |
|---|---|
| Operating voltage | 3.3V~5V |
| Operating temperature | -40°C~+70°C |
| Output signal | Digital signal |
| Size | 4.8cm*2.4cm |
3.Wiring Diagram
Hint
Expansion board is attached to esp32 controller board.
| Traffic Light Module | UNO |
|---|---|
| G | 0 |
| Y | 2 |
| R | 14 |
| GND | GND |
4.Sample Code
#define R 14 //Define the pin for the red light of the traffic light
#define Y 2 //Define the pin for the yellow light of the traffic light
#define G 0 //Define the pin for the green light of the traffic light
void setup() {
pinMode(R, OUTPUT); //Set the red light pin to output mode
pinMode(Y, OUTPUT); //Set the yellow light pin to output mode
pinMode(G, OUTPUT); //Set the green light pin to output mode
}
void loop() {
Traffic_Light(0, 0, 1); //Green light on
delay(2000); //Delay 2 seconds
Traffic_Light(0, 1, 0); //Yellow light on
delay(1000); //Delay 1 seconds
Traffic_Light(1, 0, 0); //Red light on
delay(3000); //Delay 3 seconds
}
//Define traffic light color control function
void Traffic_Light(int r, int y, int g) {
digitalWrite(R, r);
digitalWrite(Y, y);
digitalWrite(G, g);
}
5.Test Result
When you have successfully connected the circuits according to the wiring diagram and successfully uploaded the correct program, your traffic light will be green for 2 seconds, yellow for 1 second, and red for 3 seconds.
6.Related Resources
What our customers say
David and Aman were amazing. We had trouble with our Auxiliary cord. They were patient knowledgeable and friendly
Excellent service i really appreciate Highly recommend
Excellent customer service!
Very nice place! They helped me with my gadget for my scooter! 💛recommended
Very helpful staff. Found what I was looking for😎
Very helpful and did solve the issues about my husband’s phone. Thank you
David was super friendly and knowledgeable and also patient with my parents
went to buy a mobile microphone, they have different options and gave me very helpful advices to decide which one i should get :)
Excellent Service Im very happy with the service I recieved . They were incrediblly helpful and always went out of their way to explain everything clearly and patiently. All of the electronics were excellent quality and I really apreciated the time and effort they put into helpong me! Highly Recommended!!
Increible atención
Everything you need you can find, kindness and professionality
They are advertising the new Z Fold 8 ultra. We have the Z Fold 7, so we went there to check it out ans to buy a new mobile. I asked to see the phone because, in stores, they usually let you see and touch the phone before buying it. The guy replied in a really sarcastic way: “As I am the professional here, I can confirm that it is a good phone.” I was like: “What?” Then I showed him that I already had a Z Fold 7 in my hands. He replied: “So, you already know that it is a good phone.” Again, I was like: “What?” So I explained that I simply like to see and touch the phone before buying it. He just told me: “OK, go to a big store. We don’t have the phone here.” Well… not recommended. Even though I’m a big Samsung fan, I still want to check the phone for myself before buying it. It’s up to me. Expertise on something? ChatGPT also has expertise and will probably tell me much more than a sales guy.
Very helpful and friendly service. Thanks so much.
Amazing service and staff always ready to help and a vast selection of items to choose from.
Good service, David very knowledgeable and helpful
Very pleasant experience, staff is happy to help and provide information
Friendly, helpful team who are attentive and take their time to advise you with what product best meets your needs. Really appreciate the service!
Хороший ассортимент, профессиональные и приветливые сотрудники, помогли и подсказали с выбором
David es un genio. Atencion 10 puntos. Gran variedad! 🤝👏
Great service. Fast reliable and very professional people. Keep it guys u re great all of you.
Good sarvic
Impressing staff!!!thank you
Good staff, perfect service, will recommend this shop over other
Fantastic store!
Top service, my experience was very nice, they helped me with all the questions i asked very knowledgeable 100% recommend
The best staff in QAWRA very helpful and friendly 👏🏻👏🏻👏🏻👏🏻 definitely highly recommend place 😊
Zero stars if I could. I purchased a fitness tracker from this store that failed to perform its most basic advertised functions. It would not reliably track steps, sleep, or heart-rate data, and the battery life was nowhere near what was claimed. When I returned to the store for assistance, I was told the device had been checked and was supposedly working correctly. However, the problems continued exactly as before. Despite the tracker clearly not functioning as expected, the store refused to offer a replacement or further assistance and instead told me to deal directly with the manufacturer. This is extremely disappointing customer service. When a product sold by a retailer appears to be defective, customers reasonably expect the retailer to help resolve the issue rather than simply pass responsibility elsewhere. The most frustrating part was not the faulty device itself, but the complete lack of support once the sale had been made. Based on my experience, I would strongly recommend that others think carefully before purchasing electronics from this business, especially if after-sales support and customer service are important to them.
The staff were really helpful and they knew a lot about their products. 10/10 I'd definitely recommend this store. Also, it is the only place in St. Paul's Bay selling Kodak, Polaroid cameras and digital cameras.
Fastest repair
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
(+356) 2744 3236 VAT MT16528323 · 3D Secure payments by Viva Wallet
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
