Search found 15 matches
- Sun Dec 20, 2015 6:34 pm
- Forum: MicroPython pyboard
- Topic: RFID RC522
- Replies: 5
- Views: 7337
Re: RFID RC522
That's what I already do, studying documentation, but it will take long time, which i don't have.
- Sun Dec 20, 2015 5:14 pm
- Forum: MicroPython pyboard
- Topic: RFID RC522
- Replies: 5
- Views: 7337
- Sun Dec 20, 2015 2:45 pm
- Forum: MicroPython pyboard
- Topic: RFID RC522
- Replies: 5
- Views: 7337
Re: RFID RC522
Thank you for the replay. The thing is that I don't know python good enough to do so.
- Sun Dec 20, 2015 12:13 pm
- Forum: MicroPython pyboard
- Topic: RFID RC522
- Replies: 5
- Views: 7337
RFID RC522
Hi all, anyone know how to change this code https://github.com/mxgxw/MFRC522-python to code that will be compatible with byboard. Thank you.
- Fri Oct 24, 2014 8:05 pm
- Forum: MicroPython pyboard
- Topic: PyBoard and stepper motor
- Replies: 3
- Views: 6800
Re: PyBoard and stepper motor
Yes, that is fine but I want use USB_VCP() to receive commands to control the stepper motor, so pyb.delay() is no good, at least for me.
- Thu Oct 23, 2014 10:03 pm
- Forum: MicroPython pyboard
- Topic: PyBoard and stepper motor
- Replies: 3
- Views: 6800
PyBoard and stepper motor
Hi everyone. This is just to show, how I use pyboard to control stepper motor. Maybe someone will need it. See it in action. https://www.youtube.com/watch?v=4XYBexic-o8&feature=youtu.be import pyb accel = pyb.Accel() speed_x = 0 angle_x = 0 tim_x = pyb.Timer(1, freq=1) def stepper_x(speed, angle): g...
- Tue Oct 21, 2014 9:50 pm
- Forum: MicroPython pyboard
- Topic: Timers (Solved)
- Replies: 10
- Views: 11389
- Tue Oct 21, 2014 7:44 pm
- Forum: MicroPython pyboard
- Topic: Timers (Solved)
- Replies: 10
- Views: 11389
Re: Timers
What about this? import pyb switch_x_b = 1 # b for boolean switch_y_b = 1 # b for boolean switch_z_b = 1 # b for boolean tim_x = pyb.Timer(1, freq=1) tim_y = pyb.Timer(2, freq=1) tim_z = pyb.Timer(4, freq=1) def servo1(): global switch_x_b if switch_x_b: pyb.Pin('X1', pyb.Pin.OUT_PP).high() switch_x...
- Mon Oct 20, 2014 9:44 pm
- Forum: MicroPython pyboard
- Topic: Timers (Solved)
- Replies: 10
- Views: 11389
Re: Timers
Thanks dhylands. But how can I make it, to run three steppers on different pins and speed? Must be a way to do it. The thing is in the timers, just I cannot understand how to set up three different timers and change the freq when I need to. I like Python and PyBoard, I don't want to go back to Ardui...
- Mon Oct 20, 2014 6:57 pm
- Forum: MicroPython pyboard
- Topic: Timers (Solved)
- Replies: 10
- Views: 11389
Re: Timers
Yes, You right, but I tried everything and I can't find how to generate pwm to control my stepper motor. I've got this stepper driver http://www.gbeshop.com/InfoBase/downloads/M335_User_Manual-EN.pdf . In future I want three of them, each at different pin and speed. With Your code and many others, t...