Search found 7 matches

by sspaman
Sat Sep 28, 2019 3:07 pm
Forum: ESP8266 boards
Topic: Analog Pins
Replies: 16
Views: 3214

Re: Analog Pins

I have it running now. I am running it in series with the MCP3008 library from Crizeo. Crozio's code is spot on and works great. However, the hardware SPI code you posted seems to work but the first byte returned from read[0] never changes despite the voltage on the pin. So there is some small probl...
by sspaman
Fri Sep 27, 2019 12:21 am
Forum: ESP8266 boards
Topic: Analog Pins
Replies: 16
Views: 3214

Re: Analog Pins

Hi, Did you ever get this working? I have a bit banger for the MCP3008 I found on github I can give you if you want to take a look. I am trying to adapt the hardware spi since it seems like nonsense to use a library when the functions are already in uPython. I'd be interested in your solution if you...
by sspaman
Thu Sep 19, 2019 2:41 pm
Forum: ESP8266 boards
Topic: Ever expanding heap
Replies: 5
Views: 231

Re: Ever expanding heap

Thanks for the help Jimmo. I have fixed the problem and the design is running like a champ again.
by sspaman
Thu Sep 19, 2019 1:44 pm
Forum: ESP8266 boards
Topic: Ever expanding heap
Replies: 5
Views: 231

Re: Ever expanding heap

Nothing. Thanks for pointing that out. I think I know what to do.
by sspaman
Wed Sep 18, 2019 2:58 pm
Forum: ESP8266 boards
Topic: Ever expanding heap
Replies: 5
Views: 231

Re: Ever expanding heap

Hi Jimmo, Thanks for taking a look at this. Here is the offending part of the code. As far as I can tell the problem is caused by the for loop in the first publish. I can adjust the number of iterations before crash by adjusting the number in the range(x). The routines called by the loop are below. ...
by sspaman
Tue Sep 17, 2019 8:20 pm
Forum: ESP8266 boards
Topic: Ever expanding heap
Replies: 5
Views: 231

Ever expanding heap

Hi, I am using a Adafruit ESP8266 feather huzzah running micropython 1.9.4. I have some code that has been executing flawlessly for months. But I decided to add some averaging to smooth some of the noise on the data. Now as the code executes the heap slowly fills up until the following error occurs:...
by sspaman
Sun Dec 02, 2018 1:31 am
Forum: ESP8266 boards
Topic: Sending temperature data to....somwhere
Replies: 8
Views: 868

Re: Sending temperature data to....somwhere

Hi Mike, This is great stuff thanks for posting. I am new to this networking using MQTT so this is a really basic question. When connecting as a subscriber to the Adafruit IO dashboard how would I send a command to turn off an LED for example? On my Adafruit Feather Huzzah I can toggle the LED using...