enesbcs / mpyeasy-async Goto Github PK
View Code? Open in Web Editor NEWEasy MultiSensor device based on MicroPython for Raspberry Pico (RP2) and ESP32
License: GNU General Public License v3.0
Easy MultiSensor device based on MicroPython for Raspberry Pico (RP2) and ESP32
License: GNU General Public License v3.0
I see the rotary encoder.py file in the src folder of the code but it does not show up in the device list when trying to add one. Is it possible to set one up? I would like to enable 2 of them.
Just got this setup on a Wiznet W5100s module. Trying to set a static IP and after setting and clicking submit the page reverts to the original settings. I also unchecked the dhcp box. In the serial console I see this error message every time I try this.
"Loading settings
conf invalid syntax for integer with base 10"
When I go to the settings page the ip address shown in the setting is not the address the module actually has either. See screenshot.
I uncheck dhcp and change to what I want, hit submit and page reverts to same as before.
When I click on submit, 'Save tasks' is displayed in the console. However, after a restart, all devices are deleted.
On my Wiznet W5100s module I cannot get I2C to do anything. Is it implemented?
Have I2c enabled in the hardware page. Attempting to add an SI7021 temp sensor. Cannot select the I2Cline in the temp sensor settings page. Dropdown list is empty. No devices in the I2C scan page either. Rebooted several times also.
EDIT:
I think I just figured out why no I2C. Both I2C channels are use by the LAN module on this module. GPIO's 16, 17, 21 and 22 are used for ethernet. Those are the only choices available in the I2C settings on the hardware page. According to the Wiznet pinout there are quite a few other options for I2C pins. Guess we need different pin assignments available. :)
I just realized I can change those pin assignments......Duh... Closing this.
I dunno if its me screwing up or what. Have 3 brand new pico w modules. Have "dropped" the file into all of them and absolutely nothing happens. After the file uploads to the module the drive disappears from my file manager and thats it. I assume the module is rebooting but I never get a WIFI AP to connect to so I can configure it and absolutely nothing when connected to the serial port. No output in the console or any reaction to keyboard input.
Ideas? Pretty sure I'm using the correct file. https://github.com/enesbcs/mpyeasy-async/releases/download/v1.1.206-beta/mpyeasy-11260-pico-w.uf2
TIA
Not sure if it's supposed to be but NTP does not seem to be working. I have a timeserver IP address defined in the setting.
I have ESPEasy P2P controller in use and that seems to work fine. After a reboot the unit number I assign always reverts back to zero.
Wiznet 5100 module. Hardware page set D0 to output. Reboot. Tools page command line. "GPIO,0,1" turns led on. Command echos in the log. "GPIO,0,0" does nothing. LED stays on. No output in the log. No device for this in device page.
LED draws less than 4 milliamps.
Device page. Add generic switch. Select gpio 0. Hit submit. Device becomes unresponsive. Web page "refused connection".
At this point the only way I can reconnect to the device is to complete wipe and reload the firmware. All settings are lost then.
In Thonny I almost always get unable to connect to com port. Permission denied. Nothing else is using the com port.
My hair gets thinner by the day.... :>)
EDIT:
Every time I add a generic switch device the module crashes. I was finally able to get this from Thonny:
Traceback (most recent call last):
File "boot.py", line 1, in
File "mpyeasy.py", line 488, in
File "uasyncio/core.py", line 1, in run_forever
File "uasyncio/core.py", line 1, in run_until_complete
File "mpyeasy.py", line 426, in main
File "mpyeasy.py", line 237, in networkInit
KeyboardInterrupt:
MicroPython v1.19.1-209-g0c45a28d2-dirty on 2022-07-29; W5100S-EVB-Pico with RP2040
Type "help()" for more information.
MicroPython v1.19.1-209-g0c45a28d2-dirty on 2022-07-29; W5100S-EVB-Pico with RP2040
Type "help()" for more information.
EDIT 2
Set device as Output - Domoticz Output Helper (No feedback). GPIO 0 as output. Same led connected. Toggle command on device page works as expected. Also responds correctly to commands sent via http from other device. Command line in tools page: no response at all.
Gonna try a push button again next.
EDIT 3
Hardware page set D1 to input-pullup. Reboot. Device page add generic switch input. Set for "push button active high". Hit submit. Module crashes. Reboot it. Refuses connection from browser. At this point the only way I can reconnect to the device is to complete wipe and reload the firmware. All settings are lost then as above.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.