The shipping fee depends on your address
Standard: 9-15 business days,fee is down to $3.99
Express: 4-7 business days,fee is down to $5.99
WE'RE READY TO BUILD A CUSTOM PRODUCT FOR YOU.
If you're looking for a custom product, we can help. Kindly contact us via email support@keszoox.com and send us the details for your need, then we'll let you know how we can deliver the right solution.We make into production usually Within 1 - 3 Bussiness Days.
Expect customization orders.Large LEDs with built-in current limiting resistors.
The Traffic Light LED Module has large Red, Yellow and Green LEDs arranged in a standard traffic light pattern with built-in current limiting resistors.
This module includes large 8mm Red, Yellow and Green LEDs arranged like a typical traffic light that are useful for experimenting with traffic signals, using them on a railroad model or as some type of good/caution/bad status indicators for a project.
The modules have current limiting resistors built-in, so they can be connected directly to the pins of an MCU. You can even plug it directly into the female header of most Arduino boards where you have 3 digital pins next to a ground, such as using the Uno pins 11, 12, 13 & Gnd. The LEDs are lit when a logic HIGH is applied to the pins.
1×4 Header
It is pretty common to do a traffic light setup at some point, even if it is just to play with the software logic of it all. These help take those efforts to the next level and are useful for general indicators such as coupling with the soil moisture sensor to show the status of the plant soil moisture.
The program below uses two of the modules to implement a typical 2-way traffic light. It uses a simple state machine to control the LEDs. The state machine is incremented by monitoring the elapsed time using the millis() function. This allows the microcontroller to be off doing other things when it is not busy updating the lights.
The state machine is set to increment every 2 seconds and calls the UpdateLights function each time it increments. The Switch Case statement only takes action on states 0,4,5 and 9. The other states are ignored so the last state remains in effect. This allows us to set the delay between the different states. A Green and Red light cycles take 4 states (8 seconds), while the Yellow light cycle only lasts 1 state (2 seconds).
You can hook up the LEDs to any 6 digital pins, we use 4-9 in our example here.
/* This program operates two of the traffic signal modules to simulate an intersection on a road. */ const int RED1_PIN = 4; // select digital pins for 1st light LEDs const int YELLOW1_PIN = 5; const int GREEN1_PIN = 6; const int RED2_PIN = 7; // select digital pins for 2nd light LEDs const int YELLOW2_PIN = 8; const int GREEN2_PIN = 9; const int ON = HIGH; // Remapping High/Low to On/Off to better match LED state const int OFF = LOW; const unsigned long period = 2000; //Number of milliseconds between state changes (2 secs) unsigned long lastMillis; // Our last milli reading unsigned long currentMillis; // Our current milli reading int state = 0; // State machine ticker, goes 0-9 and then cycles back to 0 //=============================================================================== // Initialization //=============================================================================== void setup() { pinMode (RED1_PIN, OUTPUT); // Define our LED pins as outputs pinMode (YELLOW1_PIN, OUTPUT); pinMode (GREEN1_PIN, OUTPUT); pinMode (RED2_PIN, OUTPUT); pinMode (YELLOW2_PIN, OUTPUT); pinMode (GREEN2_PIN, OUTPUT); lastMillis = millis(); // Capture initial start time } //=============================================================================== // Main //=============================================================================== void loop() { currentMillis = millis(); // Get current time in millis if (currentMillis - lastMillis >= period) { // Time to switch state UpdateLights(); // Call UpdateLights to handle new state lastMillis = currentMillis; // Restart the milli counter state++; // Increment state if (state > 9) state = 0; // Handle any roll-over } } void UpdateLights() { switch (state){ case 0: // Lane 1 has right of way. digitalWrite(GREEN1_PIN, ON); digitalWrite(YELLOW2_PIN, OFF); digitalWrite(RED2_PIN, ON); digitalWrite(RED1_PIN, OFF); break; case 4: // Lane 1 goes yellow digitalWrite(GREEN1_PIN, OFF); digitalWrite(YELLOW1_PIN, ON); break; case 5: // Lane 2 has right of way digitalWrite(GREEN2_PIN, ON); digitalWrite(RED2_PIN, OFF); digitalWrite(YELLOW1_PIN, OFF); digitalWrite(RED1_PIN, ON); break; case 9: // Lane 2 goes yellow digitalWrite(GREEN2_PIN, OFF); digitalWrite(YELLOW2_PIN, ON); break; } }
Notes:
Ratings | ||
Vcc | 3.3 – 5V | |
ITyp | 8-9mA @ 5V | |
Dimensions | L x W (PCB) | 56mm x 13mm (2.2 x 0.51″) |
WE'RE READY TO BUILD A CUSTOM PRODUCT FOR YOU.
All orders are dispatched from our warehouse. The shipments are fully tracked—from our door to yours. Please allow 3-5 business days for your order to be processed in addition to the shipping times below.
Standard: 9-15 business days. Express: 4-7 business days.
Please note that shipping providers are extremely busy during this time, and some orders might experience a delay on top of usual delivery times. If your order is late, please allow 5-10 days more than indicated in standard shipping times before contacting our customer service. Thank you for your understanding.
All orders are 100% tracked. You’ll receive an email with a tracking number and a link to track your parcel once your order leaves our warehouse. Please allow 24-48 hours for the tracking link to start showing shipping information.
Receive our latest updates about our products & promotions.
Thanks for subscribing!
This email has been registered!