Search found 13 matches

by nekomatic
Fri Apr 26, 2019 2:02 pm
Forum: Programs, Libraries and Tools
Topic: Measuring battery percentage
Replies: 1
Views: 322

Re: Measuring battery percentage

Are you trying to measure the SiPy's own supply voltage, or the voltage of a separate battery? What voltage range do you need to measure? I'm not very familiar with the SiPy / ESP32 but based on the ESP32 MicroPython documentation , the full-scale range of the ADC inputs is about 0 - 1 V unless you ...
by nekomatic
Fri Apr 26, 2019 1:22 pm
Forum: General Discussion and Questions
Topic: Season of Docs proposal for MicroPython
Replies: 9
Views: 454

Re: Season of Docs proposal for MicroPython

This is a great idea - I hope it's successful.

For me the highest priority looks like getting the user documentation for the popular ports into better shape. With luck that would serve as a model for the documentation of other ports.
by nekomatic
Fri Apr 26, 2019 12:52 pm
Forum: General Discussion and Questions
Topic: Any MicroPython books?
Replies: 2
Views: 257

Re: Any MicroPython books?

There's also https://pythonbooks.org/python-for-microcontrollers-getting-started-with-micropython/ which I have but haven't yet worked through. The author's style is a little idiosyncratic but the book seems to cover a fair amount, although it may not be completely up to date any more. And if you're...
by nekomatic
Fri Mar 22, 2019 2:12 pm
Forum: General Discussion and Questions
Topic: Developing PCB layout
Replies: 5
Views: 351

Re: Developing PCB layout

If you're simply dealing with pull-up or pull-down resistors and decoupling capacitors, then you can almost certainly vary the value by a factor of two or more each way without problems. The only exceptions might be where the resistors are terminating a long or high-speed communication bus, or when ...
by nekomatic
Mon Jan 21, 2019 12:22 pm
Forum: General Discussion and Questions
Topic: datetime and strftime
Replies: 7
Views: 2776

Re: datetime and strftime

Methods #1 ('old-style string formatting') and #2 ('new-style string formatting') described in this guide can be used in MicroPython.

Methods #3 ('String Interpolation / f-Strings') and #4 ('Template Strings') can't.
by nekomatic
Mon Jan 14, 2019 11:50 am
Forum: General Discussion and Questions
Topic: Sensing sound from a speaker
Replies: 9
Views: 547

Re: Sensing sound from a speaker

You could connect the LED side of an optocoupler like a 4N35 to those pads on the doorbell, then you have an electrically isolated open-collector output that's easy to interface to a pin on the ESP side. Or if isolation isn't important you can just connect a suitable resistor across them and detect ...
by nekomatic
Mon Jan 14, 2019 11:16 am
Forum: General Discussion and Questions
Topic: Data recording for scientific experiments
Replies: 7
Views: 454

Re: Data recording for scientific experiments

Is there a reason that you'd want to use an embedded board for this task, rather than a desktop PC or laptop? I don't want to discourage anyone from getting into MicroPython and the pyboard but to be honest, if I were faced with this sort of requirement my first call would be a USB-connected data ac...
by nekomatic
Wed Jan 02, 2019 2:18 pm
Forum: MicroPython pyboard
Topic: Save data on power down
Replies: 14
Views: 801

Re: Save data on power down

In order to save something when the power goes down, you need to know that the power is about to go down so that you can take the action you need to save it. How can you tell that the power is about to go down? Well, you could run your pyboard from a battery- or capacitor-backed supply so that it st...
by nekomatic
Sat Nov 28, 2015 8:25 pm
Forum: Other Boards
Topic: Raspberry Pi Zero
Replies: 29
Views: 18688

Re: Raspberry Pi Zero

actually if all you want to do is say log a temperature every 30s and open / close a relay depending on the result and perhaps turn an LED on/off to show a status then you don't need any of that fancy stuff. But if you want to do that at 50 locations, then £3 is a lot more attractive than £30! To b...
by nekomatic
Tue Nov 11, 2014 6:57 pm
Forum: Hardware Projects
Topic: Use FadeCandy with an USB hub connector
Replies: 4
Views: 2595

Re: Use FadeCandy with an USB hub connector

A USB hub doesn't work like an Ethernet hub - as dhylands says, you would need the micropython board to act as a USB host, and get it to support the appropriate USB device class. Unless there's some way of driving the Fadecandy with a "TTL" serial signal, which you could provide from one of the micr...