start motor -> send signal to motor driver to start servo If (((buttonStateAccesibility = HIGH) & (myServoValue = 180)) || ((buttonStateBuiltIn = HIGH) & (myServoValue = 180))) If the button is pressed but the motor isn't running then start the motor Don't do anything when the buttonState is HIGH and the motor is moving If (((buttonStateAccesibility = HIGH) & (myServoValue != 180)) || ((((buttonStateBuiltIn = HIGH) & (myServoValue != 180))))) If the sequence is started and the motor is moving ignore the button! If the on/off switch is ON the LED must turn ON Read the state of the button (Built In switch) and save it in a variableīyte buttonStateBuiltIn = digitalRead(buttonPinBuiltIn) Read the state of the button (Accesibility switch) and save it in a variableīyte buttonStateAccesibility = digitalRead(buttonPinAccesibility) LowPower.powerDown(SLEEP_60MS, ADC_OFF, BOD_OFF) Attach servo to pin 9 and declare the min and max positions of the servo While(digitalRead(buttonPinAccesibility) || digitalRead(buttonPinBuiltIn)) Set pinMode for motorDriver -> turn servo on when there is a pulse send to the motor driver Set pinMode for button -> built in switch Set pinMode for button -> accesibility switch Create an instance of the servo library to give a name to the servo you're using What type of Arduino board, Arduino clone, or Arduino compatible board does your project use?įor prototyping the Arduino Uno, but for the real project a ProTrincket 5V Components used in your project:īutton, Resistor, LED, Servo Motor, Switch How do you power your project?
Yes, thanks to PEA I could finish my project in the way I wanted. I started from scratch programming and now I feel more confident in learning another language if needed Was the training at Programming Electronics Academy able to help you build your skill?
Looking back on this project, what can you say you have learned about programming and/or electronics through the creation process? Yes! The little boy was really happy with the end result and his caretakers loved it as well. Getting the correct angle of the servo motor to stamp exactly one page crystal clear Did the project end up as you expected? What was your biggest struggle as you worked through this project? If you press the big red button a signal is sent to the servo motor to go down.Īs the servo is going down, it presses a stamp down with it.īy pressing the stamp down just right, a clear imprint of the text of the stamp is made on the paper. This project was designed to help a boy stamp his own name and give him some more independence. I did my internship in a company that creates technologies for people with a disability.
Emma (with help from a team at the company she interns with) made this automatic stamper using a servo motor and an Adafruit Pro Trinket to help a disabled boy stamp his name on pieces of paper.Įmma, why the heck did you build an Automatic Stamper? This very cool and amazingly sleek Arduino project was submitted by Emma Lievens, a customer of PEA since early 2018. Big red button connected to an Arduino powering an automatic stamper!