Off topic, but in a similar vein - i once got chased around my shower by the shower pump motor which had broken its mountings and smashed its way out through the casing of the shower. Fortunately, it left the wiring and therefore the power behind it in the shattered remains of the housing, so I only had to evade it for a couple of seconds until it stopped richocheting around the bath.bouncymat wrote:hi
*when you do put the prop on attach it properly - it is very scary having come off and shoot across the room at full speed(i now wear goggles when fiddling with this)
Code: Select all
#!/usr/bin/python from Adafruit_PWM_Servo_Driver import PWM import time import curses pwm = PWM(0x40, debug=True) pwm.setPWMFreq(60) # Set frequency to 60 Hz screen = curses.initscr() # turn off input echoing curses.noecho() # respond to keys immediately (don't wait for enter) curses.cbreak() # map arrow keys to special values screen.keypad(True) done=False numbmax = 600 numbmin = 200 numb = numbmin inc = 10 try: while not done: char = screen.getch() if char == ord('q'): done=True else: if char == curses.KEY_UP: if numb < numbmax: numb += inc elif char == curses.KEY_DOWN: if numb > numbmin: numb -= inc elif char == ord('t'): numb = numbmax elif char == ord('b'): numb = numbmin pwm.setPWM(0, 0, numb) finally: # shut down cleanly curses.nocbreak(); screen.keypad(0); curses.echo() curses.endwin() print(numb)
This type of motor spins its outer shell around its windings, much like motors found in ordinary CD-ROM computer drives. In fact, CD-ROM motors are frequently rewound into brushless outrunner motors for small park flyer aircraft. Parts to aid in converting CD-ROM motors to aircraft use are commercially available.
You need to connect the grounds. If you don't the control signal from the Pi won't get to the ESC as there won't be a circuit.ofe wrote:Hi, just to double check about the hardware setup suggested by bouncymat.
If understand correctly the rpi is powered by an external power supply, like the pc usb, while the esc is using the lipo.
so i need to connect on the esc only the white (signal) and the black (0v).Correct?
could it be not a problem to mix the ov from pc to the ov from battery?
(as you can image i'm just a poor mechanical engineer...)