Search found 84 matches

by ernitron
Wed Dec 28, 2016 11:15 pm
Forum: ESP8266 boards
Topic: Flashing micropython on Wemos D1 Mini Pro
Replies: 34
Views: 43527

Re: Flashing micropython on Wemos D1 Mini Pro

This is almost a FAQ ;) The symptoms are pretty clear: your chip goes into a rebooting loop (that's why it blinks continuously and you see a lot of garbage on uart whatever speed you set). The cause most probably, is because esptool.py flashed a WeMos D1 Mini Pro with 4m but it has 128mb (16MB) flas...
by ernitron
Wed Dec 28, 2016 7:31 am
Forum: ESP8266 boards
Topic: TMP100 library - Please critique
Replies: 10
Views: 5337

Re: TMP100 library - Please critique

Bonus. The corrected read_temp()

Code: Select all

def read_temp(self):
     t = self.read_register(self.T_REG)
     temp = ((t[0] << 8 | t[1]) >> 4)
     if temp & 0x800: # sign bit set
         temp = -((temp ^ 0xfff) + 1)
     return temp * 0.0625
by ernitron
Tue Dec 27, 2016 12:35 am
Forum: ESP8266 boards
Topic: TMP100 library - Please critique
Replies: 10
Views: 5337

Re: TMP100 library - Please critique

It looks like (but I can be wrong as I don't have a TMP100) you didn't consider the negative values. According to specs negative are represented as twos complement with msb set. Check the code for ds18b20. Test it putting your sensor in the refrigerator ;) Besides, I would have called read_temp() te...
by ernitron
Fri Dec 23, 2016 11:48 am
Forum: General Discussion and Questions
Topic: POST on HTTP Server
Replies: 7
Views: 4602

Re: POST on HTTP Server

from an HTTP server is possible get the body of a POST HTTP request? the example i found are only with GET. thanks Hi, I use something like: while True: try: self.conn, self.addr = self.socket.accept() req = self.conn.readline() except KeyboardInterrupt: raise OSError('Interrupt') except Exception ...
by ernitron
Fri Dec 16, 2016 11:45 am
Forum: ESP8266 boards
Topic: Making sounds
Replies: 12
Views: 14746

Re: Making sounds

Following this and other discussions that show that a higher frequency can be achieved in toggling pin, I was just wondering why there is the 1khz limit on PWM for ESP8266. It is only the current implementation or there are other issues?
Thanks
by ernitron
Fri Dec 16, 2016 11:42 am
Forum: Drivers for External Components
Topic: Power supply control
Replies: 15
Views: 11327

Re: RE: Re: Power supply control

Sorry guys, I was on vacation and just read your follow ups. I confirm that the relay I am using has NPN and diode-led. Besides I have realized few of this wifi-switches (look at picture in my previous post) and they work just fine. Tested with hundreds of toggles so far with very stable ESP and re...
by ernitron
Tue Dec 13, 2016 7:35 pm
Forum: ESP8266 boards
Topic: Pin Toggle Performance
Replies: 8
Views: 8245

Re: Pin Toggle Performance

Check the topic on sound in here and the reply of pythoncoder. There was a contest on how fast a pin could be set. I am on my mobile and cannot get the link but you can easily find there.

Edit: found
http://forum.micropython.org/viewtopic.php?f=2&t=1349
by ernitron
Tue Dec 13, 2016 6:36 pm
Forum: ESP8266 boards
Topic: Making sounds
Replies: 12
Views: 14746

Re: Making sounds

You may want to checkout: http://forum.micropython.org/viewtopic.php?f=14&t=2172&p=12291 I just translated into esp/machine language your pyb_test. The rest is pretty portable... It's a pity the 1000Hz limit of the PWM on ESP. Besides I hope I've made it right. (The only audible song is TopGun Them...
by ernitron
Tue Dec 13, 2016 5:03 pm
Forum: ESP8266 boards
Topic: Simple HTTP framework
Replies: 25
Views: 17973

Re: Simple HTTP framework

Hi @fdushin, I had a look at your http server framework and it's amazing. I am impressed, really. I developed my own and it's ugly (I know) but it makes its job and it's extremely compact. But the temptation to use an elegant, robust and versatile httpd framework is huge. For my purposes this is som...
by ernitron
Sun Dec 11, 2016 9:18 pm
Forum: ESP8266 boards
Topic: Using the tx/rx pins not for UART
Replies: 42
Views: 26774

Re: Using the tx/rx pins not for UART

I solved it! This is the ONE LINE solution. --- esp8266/uart.c 2016-12-09 16:16:43.936221129 +0100 +++ esp8266/uart.c.original 2016-12-09 11:06:36.377927859 +0100 @@ -171,7 +171,6 @@ while (READ_PERI_REG(UART_STATUS(uart_no)) & (UART_RXFIFO_CNT << UART_RXFIFO_CNT_S)) { uint8 RcvChar = READ_PERI_REG(...