Automatic Marshmallow Roaster
Intro: Automatic Marshmallow Roaster
This is a marshmallow roaster (duh). A stepper motor from an old printer spins the marshmallow, on a skewer, over the candle. The heat-shrink was used to attach the skewer to the motor's shaft, because the gear would not come off of the shaft. My AC adapter was 9 volts, but 5 or 6 would have been better. The wood frame is a 3.5" square screwed to a 3.5x8" piece of wood. Make sure to use a beeswax candle, because other candles will blacken the marshmallow. Don't forget to download the motor shield library from Ladyada's website.
Arduino source code:
#include <AFMotor.h>
AF_Stepper motor(48, 2);
void setup() {
motor.setSpeed(10); // 10 rpm
}
void loop() {
motor.step(480, FORWARD, DOUBLE);
}
P.S. Please comment and rate it!
Arduino source code:
#include <AFMotor.h>
AF_Stepper motor(48, 2);
void setup() {
motor.setSpeed(10); // 10 rpm
}
void loop() {
motor.step(480, FORWARD, DOUBLE);
}
P.S. Please comment and rate it!
10 Comments
elkhuntr 11 years ago
chrisapalo 14 years ago
Kaiven 15 years ago
-henry- 15 years ago
chrisapalo 15 years ago
int ledPin = 13;
int motoPin = 8;
void setup()
{
pinMode(ledPin, OUTPUT);
pinMode(motoPin, OUTPUT);
}
void loop()
{
digitalWrite(motoPin, HIGH);
delay(60000);
digitalWrite(motoPin, LOW);
delay(500);
digitalWrite(ledPin, HIGH);
delay(5000);
digitalWrite(ledPin, LOW);
delay(10000);
}
Now for the test I put the motor on pin 8 and the test LED ( or buzzer) on pin 13, but feel free to change it up.
Thanks again.
-henry- 15 years ago
chrisapalo 15 years ago
-henry- 15 years ago
You need the motor shield if you have a stepper motor, but that's all I had at the moment. Use a DC gear motor (from an old toy or something else) and skip the motor shield and the arduino, just connect it to a few AA batteries and a switch. Also, a servo could connect directly to the arduino, but you will have to modify it for full rotation. more info here:
http://www.acroname.com/robotics/info/ideas/continuous/continuous.html
You will have to modify the code if you use a different type of motor.
amysch 15 years ago
-henry- 15 years ago