Search found 10 matches

by Curly Tale Games
Wed Jul 14, 2021 10:35 pm
Forum: ESP32 boards
Topic: Fail in the off state? GPIO Cleanup?
Replies: 8
Views: 3305

Re: Fail in the off state? GPIO Cleanup?

Very cool!!!! That's exactly what I need. I don't know why I didn't think of that haha

Thanks marcidy!
by Curly Tale Games
Wed Jul 14, 2021 4:16 am
Forum: ESP32 boards
Topic: Fail in the off state? GPIO Cleanup?
Replies: 8
Views: 3305

Re: Fail in the off state? GPIO Cleanup?

Yeah you're right, I'm pretty sure it would behave the same way on the Raspberry Pi where it would keep the same state prior to the error. I just know that Raspberry Pi has that function built in to reset all the GPIO pins back to their default state. I've seen people put it at the end of their scri...
by Curly Tale Games
Wed Jul 14, 2021 1:16 am
Forum: ESP32 boards
Topic: Fail in the off state? GPIO Cleanup?
Replies: 8
Views: 3305

Fail in the off state? GPIO Cleanup?

I'm building a web based kiln controller, and safety is a big concern of mine. Is there a way that I can be certain a GPIO pin that controls a relay for a heating element will always fail in the off state, or at least reset to the default state? On the Raspberry Pi you can do GPIO.cleanup() is there...
by Curly Tale Games
Wed Jul 14, 2021 12:46 am
Forum: Programs, Libraries and Tools
Topic: I ported my first library! MCP9600
Replies: 9
Views: 4872

Re: I ported my first library! MCP9600

Thanks for the responses. Yeah I definitely know I'm pushing I2C well beyond what it was originally meant for. But I've been testing with a short 1 foot long CAT6 cable and I'm getting the same results so I feel like I can safely rule out cable length as the problem here. Unfortunately I don't have ...
by Curly Tale Games
Sun Jul 11, 2021 7:12 pm
Forum: Programs, Libraries and Tools
Topic: I ported my first library! MCP9600
Replies: 9
Views: 4872

Re: I ported my first library! MCP9600

Alright I think I figured it out. The documentation says you can use any pins you want. https://docs.micropython.org/en/latest/esp32/quickref.html#hardware-i2c-bus hardware-i2c-pins.png And since most of the examples I found online, as well as the ESP32 pinouts diagrams used pins 21 and 22 for i2c, ...
by Curly Tale Games
Sun Jul 11, 2021 6:30 pm
Forum: Programs, Libraries and Tools
Topic: I ported my first library! MCP9600
Replies: 9
Views: 4872

Re: I ported my first library! MCP9600

Hmm if that's the case why would software I2C be faster and more reliable than hardware I2C on the ESP32? The fastest frequency I could get working with the I2C Bus ID was 15khz. Also according to the documentation there is another class called "SoftI2C" which is used for software I2C. I'm not impor...
by Curly Tale Games
Fri Jul 02, 2021 4:59 am
Forum: Programs, Libraries and Tools
Topic: I ported my first library! MCP9600
Replies: 9
Views: 4872

Re: I ported my first library! MCP9600

So I've been playing with this library for a little while now and for some reason it would only work for me at lower frequencies. I was trying to send the signal over a medium length CAT6 cable so I figured it must be related to that but after a lot of troubleshooting I figured out the problem. The ...
by Curly Tale Games
Fri Jun 25, 2021 12:49 am
Forum: General Discussion and Questions
Topic: Filesystem Max Writes - Does MicroPython manage dynamic wearing?
Replies: 3
Views: 1944

Re: Filesystem Max Writes - Does MicroPython manage dynamic wearing?

Thank you so much! I think I'll stick with littlefs V2 for logging files then since I don't want to kill my ESP32's storage :)
by Curly Tale Games
Mon Jun 21, 2021 3:34 am
Forum: General Discussion and Questions
Topic: Filesystem Max Writes - Does MicroPython manage dynamic wearing?
Replies: 3
Views: 1944

Filesystem Max Writes - Does MicroPython manage dynamic wearing?

I'm doing some data logging to the filesystem on a ESP32 running MicroPython and I have some concerns about destroying the flash storage. I've read that the ESP32 can support 100,000 writes before it starts to degrade blocks of flash storage. I looked at the different filesystems that MicroPython su...
by Curly Tale Games
Sat Jun 05, 2021 3:26 am
Forum: Programs, Libraries and Tools
Topic: I ported my first library! MCP9600
Replies: 9
Views: 4872

I ported my first library! MCP9600

This is my first post! I've been playing with Micropython for a few months now and love it. I've been working on an open source web based kiln controller that runs on an ESP32 with Micropython and I couldn't find a library for the MCP9600 i2c temperature sensor. There was a CircuitPython one, so I w...