Search found 89 matches

by ernitron
Sat Oct 29, 2016 6:27 pm
Forum: ESP8266 boards
Topic: How to use main.py to deploy my code
Replies: 17
Views: 33313

Re: How to use main.py to deploy my code

Again, thank you as ampy looks a lot like the one I was attempting to develop (my espsend is just NOT worth! forget it). I don't know your devop cycle but actually mine is: 1 erase 2 flash 3 edit 4 copy *.py and *.mpy on image 5 test 6 get back to 3 (or maybe 1) Steps 3 to 6 should get really fast a...
by ernitron
Sat Oct 29, 2016 2:19 pm
Forum: ESP8266 boards
Topic: How to use main.py to deploy my code
Replies: 17
Views: 33313

Re: How to use main.py to deploy my code

.. I found the app 'ampy', and it includes a "put" command.... I am afraid that will not work with microython and ESP8266 firmware.. ... However, 'ampy' is working for me, so I'm not sure why you say it will not work with microython and ESP8266 firmware? YOU'RE RIGHT! Maybe when I tested it was jus...
by ernitron
Sat Oct 29, 2016 10:50 am
Forum: ESP8266 boards
Topic: How to use main.py to deploy my code
Replies: 17
Views: 33313

Re: How to use main.py to deploy my code

.. I found the app 'ampy', and it includes a "put" command.... I am afraid that will not work with microython and ESP8266 firmware. I had the same problem, to accelerate devop cycle and I developed espsend.py. You can find it here: https://github.com/ernitron/uPython-esp8266-httpserver/blob/master/...
by ernitron
Sat Oct 29, 2016 9:52 am
Forum: ESP8266 boards
Topic: DS18B20 error
Replies: 11
Views: 13990

Re: DS18B20 error

Yes Pythoncoder. I guess nobody puts a temperature sensor in a fridge ;) I just fixed with this into the driver on original branch. Seems to work for 0x28 sensors. micropython/esp8266/modules/ds18xb20.py def read_temp(self, rom): buf = self.read_scratch(rom) if rom[0] == 0x10: if buf[1]: t = buf[0] ...
by ernitron
Fri Oct 28, 2016 7:19 pm
Forum: ESP8266 boards
Topic: DS18B20 error
Replies: 11
Views: 13990

Re: DS18B20 error

Ehm... sorry guys but I have just obtained an outstanding temperature with my software and DS18x20 driver: Freezer: 4079.313 °C Yes, it reads FOUR THOUSAND seventynine and something degrees Celsius in my fridge! Actually temperature sensor is set in my freezer which usually goes from -18 to -30 cent...
by ernitron
Fri Oct 28, 2016 12:09 pm
Forum: ESP8266 boards
Topic: RFC: Not enabling WebREPL by default on boot in 1.8.6
Replies: 21
Views: 20927

Re: RFC: Not enabling WebREPL by default on boot

Appendix. I have just hacked my own system! I asked my http server for the page /port_config.py (something like http://192.168.1.144/port_config.py ) and she replied something like: WEBREPL_PASS = 'abrahcadabrah' Surely my fault to allow every pages available but still something to think about. Mean...
by ernitron
Fri Oct 28, 2016 11:45 am
Forum: ESP8266 boards
Topic: RFC: Not enabling WebREPL by default on boot in 1.8.6
Replies: 21
Views: 20927

Re: RFC: Not enabling WebREPL by default on boot

It's been a while I was not reading the forum, please forgive me if I missed some topics that already has addressed these issues. These are my points: 1. In favor to NOT enable WebREPL at boot 2. In favor of some sort of hash of passwords (if it is not too heavy on code and memory consumption) 3. Fo...
by ernitron
Tue Sep 27, 2016 7:43 pm
Forum: ESP8266 boards
Topic: Previous month in ESP8266 port development...
Replies: 5
Views: 5688

Re: Previous month in ESP8266 port development...

Pfalcon (Paul) I want to state here clear and loud: without you the ESP8266 know how, development, advancement and community (not only micropython) would not exist. Thank you.

Erni
by ernitron
Tue Sep 27, 2016 7:29 pm
Forum: ESP8266 boards
Topic: Module for Ultrasonic sensor (HC-SR04)
Replies: 37
Views: 46878

Re: Module for Ultrasonic sensor (HC-SR04)

Right @pythoncoder. If you look at my previous snippet is almost what you propose with a counter instead of a Threshold. Threshold usually is set to 38000 (38 millisec). I am pretty sure the solution (you propose) to power with a steady source WeMos and HC-SR04 will work. I will test it on a breadbo...
by ernitron
Tue Sep 27, 2016 11:21 am
Forum: ESP8266 boards
Topic: Module for Ultrasonic sensor (HC-SR04)
Replies: 37
Views: 46878

Re: Module for Ultrasonic sensor (HC-SR04)

I spot some problems in the double loop: while self.echo.value() == 0: start = time.ticks_us() # Wait 'till the pulse is gone. while self.echo.value() == 1: end = time.ticks_us() If you miss (for some reason) the echo transition you could loop forever in the start and/or never entering in the end lo...