Search found 43 matches
- Wed Jul 11, 2018 1:33 am
- Forum: Announcements and News
- Topic: MicroPython running "bare metal" in the browser via unicorn.js
- Replies: 9
- Views: 107954
Re: MicroPython running "bare metal" in the browser via unicorn.js
I just came by to look at micropython again after a long time away, and it is pretty great to see some of the progress. The ability to run demo code online is extremely cool. Unfortunately, the servo demos seem not to be working at the moment. No errors, just nothing actually moves. When I put in so...
- Thu Aug 28, 2014 8:24 am
- Forum: General Discussion and Questions
- Topic: Control Speed of DC Motor
- Replies: 25
- Views: 32186
Re: Control Speed of DC Motor
Dave: I'm trying to control something with these exact motors in it: Even small motors like these: http://www.pololu.com/product/114/specs have a stall current of 2.1A so you want your motor driver to be able to drive that much current. Something like http://www.pololu.com/product/1212 would work fo...
- Tue Aug 12, 2014 8:10 am
- Forum: General Discussion and Questions
- Topic: Trying to use timers to avoid a blocking loop
- Replies: 15
- Views: 29836
Re: Trying to use timers to avoid a blocking loop
These are all really helpful and enlightening. I'm trying to get a week ahead on coursework for an online class I'm taking to accommodate vacation next week. If I can get that done, the next thing on my list is to dive into these and explore them thoroughly.
Thanks!
Thanks!
- Tue Aug 12, 2014 1:58 am
- Forum: Development of MicroPython
- Topic: Documentation
- Replies: 8
- Views: 8819
Re: Documentation
and thanks for pointing out those github issues, it was good to read through those.
- Tue Aug 12, 2014 1:41 am
- Forum: Development of MicroPython
- Topic: Documentation
- Replies: 8
- Views: 8819
Re: Documentation
pfalcon, that is true if you want the documentation for the board to be accessible only to microcontroller experts. Personally, I find things like pyb.sync() Sync all file systems. To be pretty ambiguous, at least to someone unfamiliar with filesystem operation code. It seems like a little elaborati...
- Mon Aug 11, 2014 7:25 am
- Forum: General Discussion and Questions
- Topic: Reading a temperature value from a TMP36 sensor
- Replies: 16
- Views: 19085
Re: Reading a temperature value from a TMP36 sensor
OK, I think I get it now. Thanks for humoring me on the long path there.
- Mon Aug 11, 2014 5:34 am
- Forum: General Discussion and Questions
- Topic: Reading a temperature value from a TMP36 sensor
- Replies: 16
- Views: 19085
Re: Reading a temperature value from a TMP36 sensor
OK, I just tried to sit down with the datasheet and figure out how all this stuff reconciles, and it seems like what I suspected is true, must be true. Please correct me if this is incorrect: 25 degrees Celsius on this particular sensor is equal to 750mV and it has a scale factor of 10mV / degree Ce...
- Sun Aug 10, 2014 3:29 pm
- Forum: General Discussion and Questions
- Topic: Trying to use timers to avoid a blocking loop
- Replies: 15
- Views: 29836
Trying to use timers to avoid a blocking loop
I'm trying to use a timer to update an lcd regularly with information from a temperature sensor, and to therefore better understand how to work with the board. Here is part of my code: tempPin = pyb.ADC(pyb.Pin.board.X11) def getTemp(pin): temps = [] for i in range(100): tempReading = pin.read() tem...
- Sun Aug 10, 2014 1:43 pm
- Forum: General Discussion and Questions
- Topic: SD Card not mounting on computer or on board
- Replies: 9
- Views: 10175
Re: SD Card not mounting on computer or on board
Even a delay of 1 millisecond seems to work. I suspect that running anything before setting usb_mode would have a similar effect.
- Sun Aug 10, 2014 1:32 pm
- Forum: General Discussion and Questions
- Topic: SD Card not mounting on computer or on board
- Replies: 9
- Views: 10175
Re: SD Card not mounting on computer or on board
OK, This worked, here is my full boot.py: # boot.py -- run on boot-up # can run arbitrary Python, but best to keep it minimal import pyb #pyb.main('main.py') # main script to run after this one #pyb.usb_mode('CDC+MSC') # act as a serial and a storage device #pyb.usb_mode('CDC+HID') # act as a serial...