espMouse

A modified version of the Nano Mouse that uses a NodeMCU as the controller (which in turn uses an esp8266). Since the esp8266 is a WiFi chip, the espMouse can connect to pretty much anything via WiFi.

Ordering Your NodeMCU
Figuring out which NodeMCU to order can be difficult given the somewhat confusing differences between boards (see http://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boards/ for more information). This is further compounded by the move many manufacturers are making towards using the CH340 chip instead of the CP2102.

Installation
  1. To program your NodeMCU 1.0 using the Arduino IDE, follow these instructions: https://github.com/esp8266/Arduino#installing-with-boards-manager
  2. You will also need to install the drivers from: http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
Differences from the Original Nano Mouse
The pin mapping for the NodeMCU is different from an Arduino Nano. I have included notes where needed in the playlist that explain how you to change your code accordingly. The NodeMCU's pins can be used for a variety of purposes and can be referred to in a couple ways. For example, the following two lines of code are equivalent (see the NodeMCU 1.0's pin map to understand why).
  • digitalRead(D6)
  • digitalRead(12)
The NodeMCU cannot provide enough current through the GPIO pins to properly light up an LED. For this reason, the LEDs on the espMouse are powered using a single IO pin and a 2N7000-G N-Channel MOSFET. Also, due to the lower voltage of the esp8266, the resistors supplying power to the LEDS are also smaller - only 47 Ohms.

Troubleshooting
If you have trouble uploading programs to your NodeMCU, try unplugging the servo motors attached to pin 10.
Comments