Search found 7 matches
- Sun Oct 18, 2015 11:48 pm
- Forum: General Discussion and Questions
- Topic: ESP8266 UART Driver (AT command based communication)
- Replies: 9
- Views: 21079
Re: ESP8266 UART Driver (AT command based communication)
This can be usefull: The object "SERVER" has been improved with the "select.poll" library to make it asynchronous # esp8266.py from select import poll from pyb import UART, delay class SERVER(): def __init__(self, response): self.response = response self.uart = UART(1, 115200) self.uart.write('AT\r\...
- Wed Oct 07, 2015 9:32 pm
- Forum: Hardware Projects
- Topic: Micro Python Quadcopter
- Replies: 26
- Views: 39593
Re: Micro Python Quadcopter
here is a flight controller for quadcopter, hexacopter or octacopters using a pyboard:
https://hackaday.io/project/7610-microp ... controller
https://hackaday.io/project/7610-microp ... controller
- Sat Jul 25, 2015 3:00 am
- Forum: General Discussion and Questions
- Topic: Driving more than 4 servos
- Replies: 21
- Views: 20793
Re: Driving more than 4 servos
Here I put the code for my micropython quadruped robot:
https://hackaday.io/project/6877-microp ... uped-robot
https://hackaday.io/project/6877-microp ... uped-robot
- Fri Jul 03, 2015 7:40 pm
- Forum: General Discussion and Questions
- Topic: Driving more than 4 servos
- Replies: 21
- Views: 20793
Re: Driving more than 4 servos
I made a board for drive my micropython tote quadruped robot... attached imgs And the code for control the servos: # timers t2 = pyb.Timer(2, prescaler=83, period=19999) t4 = pyb.Timer(4, prescaler=83, period=19999) t5 = pyb.Timer(5, prescaler=83, period=19999) t12 = pyb.Timer(12, prescaler=83, peri...
- Thu Jul 02, 2015 7:25 pm
- Forum: General Discussion and Questions
- Topic: Driving more than 4 servos
- Replies: 21
- Views: 20793
Re: Driving more than 4 servos
Sorry, this is the code:
>>> from pyb import Pin, Timer
>>> t4 = Timer(4, prescaler=83, period=19999)
>>> servo = t4.channel(1, Timer.PWM, pin=Pin.board.X9)
>>> servo.pulse_width(1000)
>>> from pyb import Pin, Timer
>>> t4 = Timer(4, prescaler=83, period=19999)
>>> servo = t4.channel(1, Timer.PWM, pin=Pin.board.X9)
>>> servo.pulse_width(1000)
- Thu Jul 02, 2015 7:16 pm
- Forum: General Discussion and Questions
- Topic: Driving more than 4 servos
- Replies: 21
- Views: 20793
Re: Driving more than 4 servos
Is better that way! but I try on the pin x9 and I have an error >>> from pyb import Pin, Timer >>> t5 = Timer(5, prescaler=83, period=19999) >>> servo = t5.channel(1, Timer.PWM, pin=Pin.board.X9) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: pin B6 doesn't have a...
- Wed Jul 01, 2015 3:52 pm
- Forum: General Discussion and Questions
- Topic: Driving more than 4 servos
- Replies: 21
- Views: 20793
Re: Driving more than 4 servos
I have microservos "sg90", and I want to build a tote cuadruped robot with the pyboard so a need 12 servos.... I can move then with this code: from pyb import Pin, Timer timer = Timer(2, freq=50) ch = timer.channel(1, Timer.PWM, pin=Pin.board.X1) ch.pulse_width_percent(8) ch.pulse_width_percent(13) ...