Search found 9 matches
- Tue Sep 27, 2016 1:44 am
- Forum: ESP8266 boards
- Topic: Module for Ultrasonic sensor (HC-SR04)
- Replies: 37
- Views: 46711
Re: Module for Ultrasonic sensor (HC-SR04)
The D1 mini has a 5V line, but uses 3V3 logic, so you'll need to use a voltage divider for the Echo pin. Here's an example of how to do it with a Raspberry Pi It seems ernitron is right about the current draw being the limiting factor. HC-SR04 has a working current of 15mA but the ESP8266 maximum s...
- Tue Sep 27, 2016 1:30 am
- Forum: ESP8266 boards
- Topic: Module for Ultrasonic sensor (HC-SR04)
- Replies: 37
- Views: 46711
Re: Module for Ultrasonic sensor (HC-SR04)
I haven't post to Github for the code, but I share the code here.mcauser wrote:@orsisam paste your git repo when it's ready and I'll help you test it on some of my D1 minis.
- Tue Sep 27, 2016 1:23 am
- Forum: ESP8266 boards
- Topic: Module for Ultrasonic sensor (HC-SR04)
- Replies: 37
- Views: 46711
Re: Module for Ultrasonic sensor (HC-SR04)
Thanks for pythoncoder to help me understood the code. Thanks for skgsergio to share the code on Github: https://github.com/skgsergio/MicropythonLibs Finally yesterday I success to modify the code to work with esp8266, I am testing using Wemos D1 Mini board. So, maybe it will compatible with all esp...
- Mon Sep 26, 2016 1:01 am
- Forum: ESP8266 boards
- Topic: Module for Ultrasonic sensor (HC-SR04)
- Replies: 37
- Views: 46711
Re: Module for Ultrasonic sensor (HC-SR04)
Porting that code should be very easy. It was probably written before the utime module provided microsecond level timing. The sleep_us, ticks_us and ticks_diff functions mean that there's no need to use a timer counter. Use sleep_us to time the initial 10us pulse, record ticks_us, loop waiting for ...
- Sun Sep 25, 2016 3:32 pm
- Forum: ESP8266 boards
- Topic: Module for Ultrasonic sensor (HC-SR04)
- Replies: 37
- Views: 46711
Module for Ultrasonic sensor (HC-SR04)
Hi,
I want to create a water-level project using Wemos D1 Mini, but I don't find right module for HC-SR04 ultrasonic sensor. I found one here https://github.com/skgsergio/MicropythonLibs.git, but it is used for Pyboard. If someone has porting this code to esp8266?
I want to create a water-level project using Wemos D1 Mini, but I don't find right module for HC-SR04 ultrasonic sensor. I found one here https://github.com/skgsergio/MicropythonLibs.git, but it is used for Pyboard. If someone has porting this code to esp8266?
- Wed Sep 21, 2016 2:45 pm
- Forum: ESP8266 boards
- Topic: v1.8 works on a WeMos D1 Mini
- Replies: 18
- Views: 19869
Re: v1.8 works on a WeMos D1 Mini
@platforma I found the little OLED shield a little too tiny at only 64x48. Beautiful display, but doesn't fit many words. If you are considering ordering the DHT11/22 shield, get the Dual Base shield to avoid the ESP8266 warming up the sensor and skewing the results. There are not any WeMos shields...
- Thu Sep 08, 2016 11:41 pm
- Forum: Drivers for External Components
- Topic: Anyone working on HD44780 library?
- Replies: 28
- Views: 40434
Re: Anyone working on HD44780 library?
Can You tell me how to find the i2c address using micropython? The simple way is to use the I2C.scan() method see: http://docs.micropython.org/en/latest/pyboard/library/pyb.I2C.html#pyb.I2C.scan How to use this function? I've tried but failed. I tried this code from machine import I2C I2C.scan() bu...
- Wed Sep 07, 2016 2:46 am
- Forum: Drivers for External Components
- Topic: Anyone working on HD44780 library?
- Replies: 28
- Views: 40434
Re: Anyone working on HD44780 library?
[quote="dhylands"]I wrote a [url=https://github.com/dhylands/python_lcd]python library[/url] which talks to an HD44780 based display which is connected over i2c. This was for the BeagleBoneBlack, and used an LCD module similar to [url=http://arduino-info.wikispaces.com/LCD-Blue-I2C]this one[/url] Th...
- Tue Sep 06, 2016 4:48 am
- Forum: ESP8266 boards
- Topic: Problems with the DHT example
- Replies: 15
- Views: 23573
Re: Problems with the DHT example
[quote="SpotlightKid"]There is no pin with number 3 on esp8266 boards. Available pins are: 0, 2, 4, 5, 12, 13, 14, 15, 16. On the Pyboard and the WiPy you can use [code]import pb pyb.Pin.board[/code] to see what pins are available, but, alas, on the esp8266 port [i]machine.Pin[/i] has no such attrib...