Search found 5 matches
- Wed Nov 16, 2016 11:22 pm
- Forum: General Discussion and Questions
- Topic: Gamepad --> PC --> PyBoard
- Replies: 4
- Views: 5395
Re: Gamepad --> PC --> PyBoard
How do I connect a generic SNES USB PC gamepad directly into pyboard? I have the current setup: USB gamepad -> usb female breakout -> pyboard -> PC via UART (to read values via screen /dev/ttyACM0) USB Breakout wiring between the pad and pyboard: USB red wire to V3.3 USB ground wire to to GND D+ to ...
- Tue Nov 08, 2016 11:32 pm
- Forum: MicroPython pyboard
- Topic: Accelerometer Issues?
- Replies: 10
- Views: 11618
Re: Accelerometer Issues?
Ah, brilliant! :mrgreen: I used Y1 & Y2 instead, and activated that by setting bus 6 in the constructor: from pyb import UART uart = UART(6, 9600) uart.init(9600, bits=8, parity=None, stop=1) Accelerometer now works like charm. I'll post a tutorial on using bluetooth to transmit accel results on htt...
- Tue Nov 08, 2016 3:28 am
- Forum: MicroPython pyboard
- Topic: Accelerometer Issues?
- Replies: 10
- Views: 11618
Re: Accelerometer Issues?
I am having the similar issue where I used UART via bluetooth, and do uart.write("accel x vaue = ", x). I think there is a problem with the processor's interrupt, that it will always ready the same accel value if we do something else to other pins before of after we read the values. So at this stage...
- Tue Nov 08, 2016 2:55 am
- Forum: MicroPython pyboard
- Topic: Accelerometer readings get "stuck" - please help
- Replies: 11
- Views: 10286
Re: Accelerometer readings get "stuck" - please help
Thanks for reporting it. Is there a way around this? I was thinking using a multi thread to separate the UART sending process with the accel reading process. Or perhaps getting a master - slave protocol where the slave on the board will only read accel value when asked. :geek: Will upgrading the mic...
- Mon Nov 07, 2016 2:53 am
- Forum: MicroPython pyboard
- Topic: Accelerometer readings get "stuck" - please help
- Replies: 11
- Views: 10286
Re: Accelerometer readings get "stuck" - please help
I have very similar problem. Accelerator readings got stuck only when I send data through serial port. As soon as I disable serial, it starts to read fine. Is there an interrupt or threading bug between serial and accelerometer? 
