Search found 16 matches

by MicroNinja
Wed Mar 30, 2022 7:40 pm
Forum: ESP8266 boards
Topic: DHT11 basic functional test
Replies: 5
Views: 2541

DHT11 basic functional test

Hi, I am just trying to get a DHT11 sensor to play with me on a wemos d1 mini esp8266. I have 2 of them and both fail to read a value, that makes me wonder if I am the issue here as I still sometimes get the pin numbers wrong I am just hoping someone can tell me if I have connected it correctly or i...
by MicroNinja
Thu Feb 11, 2021 7:09 am
Forum: General Discussion and Questions
Topic: ets Jan 8 2013,rst cause:4, boot mode:(3,6) with wifi
Replies: 3
Views: 3753

Re: ets Jan 8 2013,rst cause:4, boot mode:(3,6) with wifi

Hmm i have seen watchdog being mentioned as well as power outage. watchdog still goes over my head, need to spend more time understandig what it is. I just erased and flashed another wemos mini D1 I have and tried with just the wifi connection script and the same crash happened. So far I have used 3...
by MicroNinja
Wed Feb 10, 2021 9:41 pm
Forum: General Discussion and Questions
Topic: ets Jan 8 2013,rst cause:4, boot mode:(3,6) with wifi
Replies: 3
Views: 3753

ets Jan 8 2013,rst cause:4, boot mode:(3,6) with wifi

Hi! Is this a common/expected issue? I have found several threads with similar issue but I have not found how to solve it yet? I get this error only when I am using a wifi connection. Using a wifi connection in my projects is the only reason I got started with micropython so now I am stuck from star...
by MicroNinja
Mon Apr 13, 2020 8:00 pm
Forum: General Discussion and Questions
Topic: Unit keep rebooting after running an imported function
Replies: 2
Views: 1634

Re: Unit keep rebooting after running an imported function

I soldered a second wemos and tried to upload again. The result was exactly the same. Sometime when I use ampy to put file on it I get ampy.pyboard.PyboardError: could not enter raw repl If I abort and try again it works again and I can see the file on the wemos. But when I enter the repl through pu...
by MicroNinja
Fri Apr 10, 2020 8:37 am
Forum: General Discussion and Questions
Topic: Unit keep rebooting after running an imported function
Replies: 2
Views: 1634

Unit keep rebooting after running an imported function

Hi! Keep running into odd issues it seem.. I have written a small util.py file that only include a function to connect to network import network def wifi_connect(): """Connect to the configured Wi-Fi network.""" sta_if = network.WLAN(network.STA_IF) if not sta_if.isconnected(): print('connecting to ...
by MicroNinja
Fri Apr 10, 2020 6:06 am
Forum: General Discussion and Questions
Topic: ampy not working after main.py is uploaded
Replies: 4
Views: 3954

Re: ampy not working after main.py is uploaded

Thank you guys for the suggestions. I am on a steep learning curve with microcontroller and micropython it seems. I finally found the error! I had connected the wire wrong to wake up the unit again so instead everything crashed. Once the wiring was resolved I was able to communicate with ampy again....
by MicroNinja
Thu Apr 09, 2020 6:33 pm
Forum: General Discussion and Questions
Topic: ampy not working after main.py is uploaded
Replies: 4
Views: 3954

ampy not working after main.py is uploaded

I have uploaded a main.py file. Whenever I press the reset button the the code is run again. But I cannot make any changes since the unit is busy ampy <any commands> serial.serialutil.SerialException: GetOverlappedResult failed (PermissionError(13, 'Access is denied.', None, 5)) So far I have to fla...
by MicroNinja
Thu Apr 09, 2020 5:57 pm
Forum: General Discussion and Questions
Topic: Tips about dealing with scedule time, e.g light swith timer etc
Replies: 2
Views: 1828

Re: Tips about dealing with scedule time, e.g light swith timer etc

Ok, so i did some testing using the syntax from the doc RTC.irq(*, trigger, handler=None, wake=machine.IDLE) However my code produce an error: rtc.irq(trigger=rtc.ALARM0, handler=turn_on_led_callback, wake=machine.DEEPSLEEP) TypeError: extra keyword arguments given I am using a wemos 8266 but it onl...
by MicroNinja
Thu Apr 09, 2020 4:42 pm
Forum: General Discussion and Questions
Topic: Tips about dealing with scedule time, e.g light swith timer etc
Replies: 2
Views: 1828

Tips about dealing with scedule time, e.g light swith timer etc

Hi! I am working on a basic watering system. The plan is to control when to water and for how long with some sort of timer. For example "activate pump at time x for 15 seconds". Working with time in general is quite tricky so I am asking for advice. I dont want the time schedule to be hard corded, I...
by MicroNinja
Sat Feb 22, 2020 3:17 pm
Forum: ESP8266 boards
Topic: Isses getting Oled to work properly
Replies: 3
Views: 2570

Re: Isses getting Oled to work properly

Turns out nothing was wrong with wiring or code. I seem to have a faulty unit that just sometimes work. I had another one and that work fine everytime. Annoying when you spend so much time on it :( Oh well