The following project was carried out in partial fulfillment of the module Mecatronics System Design. This project includes research, design and development of Arduino code and a suitable circuit in order to create a dusk indicator using a voltage comparator.
Task 1
Activate a yard light represented by an LED using an LDR. The level of light dected by the LDR should be compared to the value currently set by a linear potentiometer. The ower can vary the potentiometer to vary how dark it needs to be before the yard light turns on.
Task 2
Task 2 requires adding complexity by incorporating 2 levels of LED brightness, depending on the level of darkness. IF the light level falls just below the potentiometer level the LED shoud …show more content…
Most programmable microcontrollers that are used today are embedded in other consumer products or machinery including phones, peripherals, automobiles and household appliances for computer systems. Due to that, another name for a microcontroller is "embedded controller." Some embedded systems are more sophisticated, while others have minimal requirements for memory and programming length and a low software complexity. Input and output devices include solenoids, LCD displays, relays, switches and sensors for data like humidity, temperature or light level, amongst …show more content…
Then the process of writing the code that was needed for the circuit to operate as desired begun.
Once the code was produced and the Arduino software had approved it (after the debugging stage), the code was then uploaded to the Arduino Uno.
Next was the connection of the Arduino, the Breadboard and the components listed above. This can be a tricky process, so care was taken to ensure that the circuit was wired as the code created was written. To avoid any mistakes being made every member of the group checked to see if they could spot any mistakes that might have crept in. Then the circuit was powered and checked if it behaved as desired.
Once all of the above had be done correctly and worked as it was intended, the group combined to think of ways to improve the process and to add complexity to what was originally required.
The following were the resulting ideas for the complexity to be added:
• Back up LED if first LED blows or becomes un-operational for whatever reason
• Alarm system to detect and warn if LED has failed
• Similar alarm system to alert if LDR becomes