Search found 13 matches
- Fri Apr 10, 2020 3:47 pm
- Forum: ESP32 boards
- Topic: Low speed onewire variation
- Replies: 8
- Views: 5130
Re: Low speed onewire variation
An update on the saga of detecting the pulses... I tried a few approaches 1. RISE | DROP edge interrupt on the pin and capturing ticks on linear buffer for drop and rise. It seemed to work at the beguining when I had an simple delay loop on the main. Interestingly, when I modified the code for async...
- Thu Apr 02, 2020 2:22 pm
- Forum: ESP32 boards
- Topic: Low speed onewire variation
- Replies: 8
- Views: 5130
Re: Low speed onewire variation
I have been making some progress on this. Implementing transmission of the pulse train using the existing RMT support was easy. It has taken longer to work on the receiving side. What I have done for testing is to feed back the transmitted pulse train to the receiving pin and tie that pin to an inte...
- Fri Mar 13, 2020 2:07 pm
- Forum: General Discussion and Questions
- Topic: From hex string to bits
- Replies: 10
- Views: 7431
- Thu Mar 12, 2020 6:55 pm
- Forum: General Discussion and Questions
- Topic: From hex string to bits
- Replies: 10
- Views: 7431
From hex string to bits
I am a beginner with Python and I am struggling a bit trying to go from a hex string to serialized bits to create onewire pulse stream. I have been able to make something work in Python but get syntax error in MP. This is what I have in Python pb=b'\x96\x09' pgmba=bytearray.fromhex('ff 40 03 00 00 b...
- Mon Mar 09, 2020 8:53 pm
- Forum: ESP32 boards
- Topic: Low speed onewire variation
- Replies: 8
- Views: 5130
Re: Low speed onewire variation
Although it is certainly very interesting and didactically valuable, it obviously makes a lot of effort to operate onewire safely and reliably. https://www.artekit.eu/products/breakout-boards/ak-ds2482s-100/ This is a breakout that makes many things easier, even the high power supply is implemented...
- Wed Mar 04, 2020 6:07 am
- Forum: ESP32 boards
- Topic: Low speed onewire variation
- Replies: 8
- Views: 5130
Re: Low speed onewire variation
This is going to be tricky to do to the required precision in Python -- this is why the _onewire module exists. Compiling the firmware for ESP32 isn't that tricky. If you're one Windows, you might want to take a look at WSL. There are some pending updates to the build documentation here which might...
- Tue Mar 03, 2020 11:28 pm
- Forum: ESP32 boards
- Topic: Low speed onewire variation
- Replies: 8
- Views: 5130
Re: Low speed onewire variation
Thinking aloud about timer interrupts to implement the write... is it possible/acceptable to toggle a GPIO and rearm a ONE-SHOT timer or change the frequency of a PERIODIC one from inside the timer IRQ call back routine?
- Tue Mar 03, 2020 6:15 pm
- Forum: ESP32 boards
- Topic: Low speed onewire variation
- Replies: 8
- Views: 5130
Low speed onewire variation
I am evaluating the ESP32 for a home project I have in mind. I have a sprinkler controller that has a remote receiver connected via a custom one way onewire protocol running at 480 Hz. There is no device address involved, and messages consist of 7 bytes inbound. What I know about it, I have learned ...
- Mon Feb 10, 2020 12:49 pm
- Forum: General Discussion and Questions
- Topic: import module as new name
- Replies: 4
- Views: 2342
Re: import module as new name
Thank you Peter, many other languages do to... Just as a COBOL curiosity tidbit, variables are commonly a string of hyphenated words, a bit on the verbose side. Operators have to be space separated from variables.
Thank you again
Tony
Thank you again
Tony
- Sat Feb 08, 2020 7:53 pm
- Forum: General Discussion and Questions
- Topic: Properly checking for errors during a WiFi connection?
- Replies: 13
- Views: 25017
Re: Properly checking for errors during a WiFi connection?
I am not sure if this will be of any help... I wonder if looking at both, the espressif and MP source modules you may be able to figure out what is handled and any mappings... For example, this is from esp_wifi.h [size=85][size=50][size=50] [size=50][/size]#define ESP_ERR_WIFI_NOT_INIT (ESP_ERR_WIFI...