Search found 12 matches

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: 273

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: 273

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: 273

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: 315

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: 2576

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: 2576

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: 2576

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: 47
Views: 23500

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...
by happyday
Sat Jan 21, 2017 8:35 pm
Forum: ESP8266 boards
Topic: Reading UART0 bytes from RX
Replies: 3
Views: 1860

Re: Reading UART0 bytes from RX

Thank you. From looking at the bytes within a logic analyzer and having to code work just within main.py, i do not think it is about waiting. Rather I think it might be the memory allocated to hold the incoming bytes of the UART0 are not being held onto so that the readinto() gets a chance to copy i...
by happyday
Sat Jan 21, 2017 8:33 pm
Forum: MicroPython pyboard
Topic: pyboard that has pinout for Arduino Shields?
Replies: 2
Views: 1390

Re: pyboard that has pinout for Arduino Shields?

Thank you very much. Indeed, right now I am using a Wemos D1. I am new to MicroPython. I noticed the pyb module is a richer implementation than the machine module available to the ESP8266 version of MicroPython. Again, thank you.