maybe i should use the servo library and the servo.write instruction
"The signal pin should be connected to a digital pin on the Arduino board."
i should test a sketch like this one
/* Sweep
by BARRAGAN <http://barraganstudio.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
Hi,
I can see you have the gnd of the UNO and the gnd of the power supply leads connected, but do you have the signal gnd pin connected to UNO gnd.
It may need that connection for gnd reference for the control signal.
I agree with tom also the + pin may need +4.7 V on it.
The servo decoder circuit may depend on a separate supply as this is normally supplied via the receiver this way.
i am afraid to connect also the + of the board to the 5v of arduino
i think the + on the board it's a 5v power supply for an external receiver as stated on description:
Input power: 7.4V, max 1.3A
** Control signal input: front and back remote signal input (including 5V power supply)**
Battery low voltage protection: if the battery voltage is below 6.0V, the smoky exhaust pope will give out a short and a long flame signal and stop to give out smoke
Oil shortage overheating protection: when the oil is insufficient, the smoke will be thin; when the smoky exhaust pipe is overheating, the circuit will stop working and the smoky exhaust pipe will stop fuming. At the same time, the smoky exhaust pipe will give out slow-flashing flame signal until the temperature drops
Flame simulation: if the accelerator is larger, the flame flashing frequency is higher; when the generator is at idle, the flame flickering frequency is slow
Smoke simulation: if the accelerator is larger, there is smoke giving out; when in idle mode, only a little smoke is generated
It lasts 20 to 30 minutes when filling up the tank
thanks to everyone
just checked the + on the smoke board and it showed almost 0 volts
so i connected the 5v of arduino to that pin and it's working! it's smoking! haha
i can't control the smoke engine with this code, it just do the job as showed in the video, a cycle of smoking and stop
my achievement is to make it smoke when a switch is pressed
/* Sweep
by BARRAGAN <http://barraganstudio.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}