Search found 653 matches

by OutoftheBOTS_
Tue Oct 15, 2019 8:47 pm
Forum: ESP32 boards
Topic: Reading fan tacho signal frequency?
Replies: 6
Views: 134

Re: Reading fan tacho signal frequency?

AS Roberthh has said you can use interrupts then count with software and you will achieve a good results. The ESP32 does have a hardware peripheral designed to do exactly this which doesn't use any CPU load. see https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/pcnt.htm...
by OutoftheBOTS_
Wed Oct 09, 2019 9:31 pm
Forum: ESP8266 boards
Topic: ESP12F Minimum Serial Wiring
Replies: 11
Views: 211

Re: ESP12F Minimum Serial Wiring

Make sure you put a 100nf caps on the rst pin or you will find it will have unstable operation at minimum and may even reset when you use wifi due to dipping on that pin. I would also recommend a 10uf and 1uf cap on the VCC pins. I have not included these before and found the ESP32 worked but was un...
by OutoftheBOTS_
Tue Oct 08, 2019 10:49 am
Forum: ESP32 boards
Topic: Reading fan tacho signal frequency?
Replies: 6
Views: 134

Re: Reading fan tacho signal frequency?

A bit of googling shows the tacho pin (yellow wire) is a 5v signal that gets 1 high - low signal per revolution. You will need to add a voltage divider to connect to a ESP32 as they are not 5v tolerant and need voltages below 3.6v. I do remember on another thread on this forum a discussion of a peri...
by OutoftheBOTS_
Tue Oct 08, 2019 6:13 am
Forum: micro:bit boards
Topic: Looking for suggestions for a cheaper microcontroller - compatible with basic code used on a microbit powered prototype.
Replies: 4
Views: 133

Re: Looking for suggestions for a cheaper microcontroller - compatible with basic code used on a microbit powered protot

If you want your micro:bit code to run directly, then the best thing to do is to actually use a microbit -- i.e. use the same NRF51822 processor that's in the micro:bit. Would something like this do the job? https://www.aliexpress.com/item/32798417133.html?spm=a2g0o.productlist.0.0.105034445P269c&a...
by OutoftheBOTS_
Mon Oct 07, 2019 8:46 pm
Forum: micro:bit boards
Topic: Looking for suggestions for a cheaper microcontroller - compatible with basic code used on a microbit powered prototype.
Replies: 4
Views: 133

Re: Looking for suggestions for a cheaper microcontroller - compatible with basic code used on a microbit powered protot

ESP8266 is the cheapest your going to get and will easily be able to do the job you need. I haven't used micro bit so not sure if the code may need a small change or if it will just plug and play. https://www.aliexpress.com/wholesale?catId=0&initiative_id=AS_20191007124433&SearchText=esp8266&switch_...
by OutoftheBOTS_
Thu Oct 03, 2019 11:50 am
Forum: General Discussion and Questions
Topic: ESP32 Network Behavior
Replies: 23
Views: 524

Re: ESP32 Network Behavior

myStruct = ustruct.pack('iiii',txData1,txData2,txData3,ctr) newBytes = bytearray(myStruct, 'UTF-8') conn.sendall(newBytes) Ok I would image you can shorten this to 1 line to make it run quicker so that it doesn't have to write to ram as ustruct.pack should return a byte-array conn.sendall(ustruct.p...
by OutoftheBOTS_
Wed Oct 02, 2019 5:40 am
Forum: General Discussion and Questions
Topic: ESP32 Network Behavior
Replies: 23
Views: 524

Re: ESP32 Network Behavior

I am unable to solve this seemingly simple problem - I cannot convert an integer (> 255) to bytes, tried this and to no avail: if it is >255 then it can easily be packed in to a char import ustruct positive_int_less_than_255 = 210 byte_var = ustruct.pack("B", positive_int_less_than_255) You can pac...
by OutoftheBOTS_
Tue Oct 01, 2019 8:51 pm
Forum: ESP32 boards
Topic: Differences between Micropython ports for ESP32 and ESP8266
Replies: 34
Views: 13785

Re: Differences between Micropython ports for ESP32 and ESP8266

If you google you should find a number of FTP servers for micropython that run on ESP32 and ESP8266 that are great for transferring files to the micropython board.
by OutoftheBOTS_
Tue Oct 01, 2019 9:46 am
Forum: General Discussion and Questions
Topic: ESP32 Network Behavior
Replies: 23
Views: 524

Re: ESP32 Network Behavior

Can you post your code? Also I would try to avoid any changes to the data that would result in processor time like str(adc1,adc2,adc3)+"\" You could just send each value to the socket directly like: send.conn(adc1) send.conn(b",") send.conn(adc2) send.conn(b",") send.conn(adc3) send.conn(b"\") That...
by OutoftheBOTS_
Wed Sep 25, 2019 8:32 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 35
Views: 860

Re: ulab, or what you will - numpy on bare metal

This is great functionality that MP has been missing compared to cpython.