A shield for the D1 Mini ESP8266 development board with 8 buttons.
Designed by Radomir Dopieralski in SwitzerlandThis seller is taking a break. Sign up below to get an email when they're back!
No shipping info available.
Set destination country to see options
Shipping to starts at
Free shipping is available to !
Ships from
This item does not ship to .
More Info
Sign up and we'll send a reminder when the seller returns!
If you need a larger amount of any of my products, or you would like to sell them in your store, please contact me. All my designs are publicly available, and I can help you with the production setup.
What is it? It's a shield for the popular D1 Mini development board, that adds to it eight buttons, arranged in a layout familiarfrom handheld consoles and game pads. It comes with a chip that handle…
Read More…It's a shield for the popular D1 Mini development board, that adds to it eight buttons, arranged in a layout familiarfrom handheld consoles and game pads. It comes with a chip that handles the buttons and communicates over I²C, so no extra pins are used.
I needed a way to control the robots I'm building, and I also wanted to play a little with writing simple games for the ESP8266. It could also be suitable for controlling home automation systems, all sorts of appliances, etc. — anywhere you need any sort of menu or cursor.
This is a new version, 6.0, that has considerable improvements compared to the older versions. First, it's bigger and uses bigger buttons, which makes it much more convenient to use. Second, instead of a simple pin expanding chip, this version has a microcontroller, programmed to perform button de-bouncing and buffering, so you no longer need to poll the shield for button presses frantically, afraid that you might miss any — all presses are recorded and wait in the buffer until you read them. Finally, it has headers for connecting two kinds of popular display modules, so you don't need any extra cables.
The shield comes with male pin headers that are friction-fit into the holes — no soldering is necessary. You can also use your own headers, or attach it to any other shield you are using. There are no components in the middle section of the board, so it can fit flat against any other shield or the D1 Mini itself.
You just have to read a single byte from the I²C bus from the address 0x10. The bits of that byte will correspond to the buttons that have been pressed since the last reading. Here is example code for different platforms:
from machine import I2C, Pin
import time
i2c = I2C(-1, Pin(5), Pin(4))
while True:
print(hex(i2c.readfrom(0x10, 1)[0]))
time.sleep(1)
i2c.setup(0, 1, 2, i2c.SLOW)
tmr.alarm(0, 1000, 1, function ()
i2c.start(0)
i2c.address(0, 16, i2c.RECEIVER)
print(string.toHex(i2c.read(0, 1)))
i2c.stop(0)
end)
#include
void setup() {
Wire.begin();
Serial.begin(9600);
}
void loop() {
Wire.requestFrom(0x10, 1);
Serial.print(Wire.read(), HEX);
delay(1000);
}
Check the links to the documentation and the design files. There are detailed logs about how I made this, and there are the design files, the schematic, and the firmware code.
No country selected, please select your country to see shipping options.
No rates are available for shipping to .
Enter your email address if you'd like to be notified when X-Pad, Buttons Shield for D1 Mini, Version 6.0 can be shipped to you:
Thanks! We'll let you know when the seller adds shipping rates for your country.
Shipping Rate | Tracked | Ships From | First Item | Additional Items |
---|---|---|---|---|
:
|
Since most products in my store cost less than proper shipping, I'm sending them in regular letters by default: there is no tracking, and it can take several weeks for it to arrive. If un-tracked packages are known to mysteriously disappear in your country, or if you are in a hurry, please select the option with tracking — it will be sent as a registered letter then.
Product: (5.00)
Documentation: (4.75)
Shipping: (4.75)
Communication: (4.75)
Hendra | June 24, 2018
Steve | June 14, 2018
Emmanuel | April 22, 2018
Marek | Oct. 13, 2017
No shipping info available.
Set destination country to see options
Shipping to starts at
Free shipping is available to !
Ships from
This item does not ship to .
More Info
Sign up and we'll send a reminder when the seller returns!
$9.99
Free Shipping!
$8.00
Free Shipping!
$5.00
Free Shipping!
$16.00
Free Shipping!
$5.00
Free Shipping!
$5.00
Free Shipping!
$5.00
Free Shipping!
$2.00
Free Shipping!
By clicking Register, you confirm that you accept our Terms & Conditions
We recognize our top users by making them a Tindarian. Tindarians have access to secret & unreleased features.
We look for the most active & best members of the Tindie community, and invite them to join. There isn't a selection process or form to fill out. The only way to become a Tindarian is by being a nice & active member of the Tindie community!