Hello, I need to program a particle photon, here the components that I have
1- Adafruit PIR motion sensor 2- 12vdc engine 3- Adafruit DRV8871 motor driver 3A- 12 vdc motor 4- 12vdc li-ion battery pack 5- 6 vdc motor 6- on / off switch 7- Momentary push button select programs 8- Neo pixel ring 12x 5050 for programs ID
When you set the switch to ON only the Neo pixel turn green. Then pressing the momentary button only once select the program # 1 blue color, twice program # 2 yellow color, three times program # 3 violet color and four times the program # 4 orange At all times when the PIR sensor is activated the motor has to stop and the program has to pause and continue where it left off when it is deactivated (all programs)
The 6 vdc motor need to start to turn 3 seconds late that the 12v motor is on (all programs) Ex. 12vdc motor start run and 3 second later start 6 vdc motor to run both stop same time.
Program # 1 After selecting program # 1 to have a delay of 10 seconds then the 12vdc motor starts at 100% speed for 10 seconds, then speed 75% for 10 seconds, then speed 50% for 10 seconds, and speed 25% for 10 seconds and stop Repeat automatically every 2 hours Led flashing blue all time during program # 1 is running
Program # 2 After selecting program # 2 to have a delay of 10 seconds then the engine starts at 100% speed for 10 seconds, then speed 75% for 60 seconds, then speed 50% for 10 seconds, and speed 25% for 10 seconds and stop Repeat automatically every 4 hours Led flashing Yellow all time during program # 2 is running
Program # 3 After selecting program # 3 to have a delay of 10 seconds then the engine starts at 100% speed for 10 seconds, then speed 75% for 10 seconds, then speed 50% for 10 seconds, and speed 25% for 10 seconds and stop Repeat automatically every 6 hours Led flashing violet all time during program # 3 is running
Program # 4 Only one time program After selecting program # 1 to have a delay of 10 seconds then the engine starts at 100% speed for 10 seconds, then speed 75% for 10 seconds, then speed 50% for 10 seconds, and speed 25% for 10 seconds and stop Led flashing orange all time during program # 4 is running
My power is 12VDC add whatever i need for use just this 12vdc battery