We need a code written for ATMEGA328P MCU in Atmel Studio.
Code Structure:
- Two buttons : Button 1 & Button 2
- Four LEDs : LED1, LED2 ,LED3, LED4 and LED5.
Functionality of the Button :
Button1 Used for :
- Starting the system.
- Selecting Sequence1 and Sequence2
- Stopping the System after Long press of 5seconds.
Button2 used for :
- Starting the Sequence1 or Sequence2 after selection
- Stopping the Sequences.
LED1 & LED2 for Battery indication if Good - LED1 is ON or Low Battery - LED2 is ON
Operation:
When Button1 is pressed if the Battery level is Good only then system will work. Now at good battery Level, When Button1 is pressed LED1-ON(power-on Indication) and LED3-ON(Run Sequence1 Indication).
Pressing Button1 again will help to select Sequences between Sequence1 and Sequence2.
Once the specific Sequence is selected , pressing the Button2 will start the sequence and pressing it again will Stop the running sequence.
Once the sequence is STOPPED , you can select the sequence again and then run it.
When you press the Button1 for Long press of 5 seconds, the system will switch off.
The system should be in Low power mode/Sleep mode to avoid battery usage
Sequence1 - will be shared
Sequence2 - will be shared
Please write to me about your queries and how you can do this.
Time-line is 2days. Project budget is INR 2800, except the last part where you stop the sequence in between is not written. Can help you with the code.
Update required twice a day with part of Code you are writing.
Code must have proper comments for easy understanding of the flow.
Deadline is till Tuesday 5pm.
Payment through Milestone and once work is done will be released.
-----------------------------------------------------------------------------------------------------------------------------------------------------
Just filled to complete 100 characters.