Search found 14 matches

by happyday
Sat Nov 23, 2019 12:04 pm
Forum: General Discussion and Questions
Topic: Detecting a beep with ESP32/micropython
Replies: 4
Views: 4257

Detecting a beep with ESP32/micropython

I want to use a cheap mic + ESP32 running micropython to detect a high frequency beep. I don't have a background in audio. Can someone please advise me how I can best do this? I assume there is something like read adc -> fft -> if at this frequency there is a beep...but i am not sure. Thank you.
by happyday
Thu Oct 10, 2019 4:04 pm
Forum: ESP32 boards
Topic: OTA of micropython code on ESP32?
Replies: 10
Views: 8150

OTA of micropython code on ESP32?

I am exploring "the best" way to do OTA of my micropython code that runs on an ESP32. Do you have any recommendations?

Thank you.
by happyday
Mon Jul 01, 2019 7:15 pm
Forum: General Discussion and Questions
Topic: unexpected/don't understand: SPI - cprrect register readings only when print statements included
Replies: 5
Views: 3621

Re: unexpected/don't understand: SPI - cprrect register readings only when print statements included

Thank you. I have read the data set. And have looked at similar micropython code for a similar chip (the atm90e36). It is odd. I'm looking at the timing of CircuitPython / SPI and the same traffic with Micropython/SPI using a logic analyzer, checking the timing. For a reason I don't understand, I ha...
by happyday
Mon Jul 01, 2019 10:21 am
Forum: General Discussion and Questions
Topic: unexpected/don't understand: SPI - cprrect register readings only when print statements included
Replies: 5
Views: 3621

Re: unexpected/don't understand: SPI - cprrect register readings only when print statements included

Thank you. I am. I can get it to work. The surprise I have is now I wait 3ms between read/writes. Then I get the right values for voltage. With CircuitPython, I need not wait this long.
by happyday
Fri Jun 28, 2019 10:38 pm
Forum: General Discussion and Questions
Topic: unexpected/don't understand: SPI - cprrect register readings only when print statements included
Replies: 5
Views: 3621

unexpected/don't understand: SPI - cprrect register readings only when print statements included

I am using an ESP32 DevKit C to talk with an atm90e32 energy monitor over HSPI. MOSI/MISO traffic goes back and forth. However, the values for voltage sent back are correct when I pepper the script with print statements. When I do not, the readings are off. I thought I fixed SPI timing by judiciousl...
by happyday
Wed Jul 18, 2018 2:49 pm
Forum: Development of MicroPython
Topic: Not sure why my code is not working: external interrupt while in standby mode
Replies: 0
Views: 1497

Not sure why my code is not working: external interrupt while in standby mode

Hello, My code is actually for CircuitPython. But, MP and CP are basically the same. I have written a C module extension that puts the m0 into standby then wakes up on an interrupt (to D12 - right now I am hard coding the pin mapping for simplicity). The code in my C module extension: https://github...
by happyday
Sat Jan 28, 2017 3:36 pm
Forum: MicroPython pyboard
Topic: Not sure how to install MicroPython package onto PyBoard v1.1
Replies: 5
Views: 6074

Re: Not sure how to install MicroPython package onto PyBoard v1.1

Thank you. The help('modules') is very useful! OH SNAP - so here I am tightly correlating MicroPython with networking....silly me...drat. The PyBoard V1.1 does not have a network chip (like the ESP8266)...shoot...I really like the PyBoard's implementation of UART, but useless to me if I can't use mq...
by happyday
Sat Jan 28, 2017 2:32 pm
Forum: MicroPython pyboard
Topic: Not sure how to install MicroPython package onto PyBoard v1.1
Replies: 5
Views: 6074

Re: Not sure how to install MicroPython package onto PyBoard v1.1

Thank you VERY much for your reply. I installed 1.8.7 for the PyBoard 1.1...here is REPL output: MicroPython v1.8.7 on 2017-01-08; PYBv1.1 with STM32F405RG SADLY - when I enter: >>> from umqtt.simple import MQTTClient Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError...
by happyday
Sat Jan 28, 2017 12:34 am
Forum: MicroPython pyboard
Topic: Not sure how to install MicroPython package onto PyBoard v1.1
Replies: 5
Views: 6074

Not sure how to install MicroPython package onto PyBoard v1.1

I am the happy recipient of a PyBoardv1.1. I wish to use mqtt. I found the umqtt.simple package. I apologize for a perhaps dumb questions - but I couldn't find install instructions. How do I install this library https://pypi.python.org/pypi/micropython-umqtt.simple/1.3 as a library accessible via >>...
by happyday
Sun Jan 22, 2017 2:52 pm
Forum: ESP8266 boards
Topic: Software serial?
Replies: 57
Views: 73600

Re: Software serial?

I am excited to try your code. Thank you. Forgive my challenge, but I have not built a MicroPython bin and hope you will help me through a challenge I am having. Adafruit's directions include downloading esp-open-sdk into the Ubuntu VM. I do not know how to modify a Vagrant install in order to repla...