It's a strange critter. I guess it's intended for people who wanted to experience the deal but are intimidated by working with electronics even to the slightest degree.
It has onboard pushbutton switches, a joystick, an accelerometer, a little speaker, a photocell, and an RBG LED (probably some other stuff I'm forgetting.)
Those things are all accessed with special Esplora commands.
It can be used, as a Leonardo, to send information in keyboard code (use the Keyboard.x commands.)
There are 9 digital I/Os available on 3 headers: 2 on two different 3pin headers (orange) and 7 on the 10pin LCD SIP. 2 Analog inputs are available on two other 2pin headers (white).
The analog inputs are accessed via an onboard multiplexer which is completely different from the "analogRead" ADC of the familiar Uno (Duemilanove, &c.) paradigm. The digital pins, though, are configurable as inputs/outputs in the pinMode / digitalRead / digitalWrite scheme.
I have found that the digital pins work with Servo.h.
Bought a couple of TFTs on ebay, designed to fit the Esplora headers. $10, not too bad. I think the alignment is off 1 pixel or something, you can see the bright line there on the right and the bottom.
Current draw: 60mA.
- Softwareserial.h is Esplora compatible.
- Also, the Esplora ADC reference is very supply dependent, it is == supply voltage. As V_usb varies from PC to PC, so too will ADC results.
- The L LED is accessible as Pin 13. Make its pinMode an OUTPUT and then it's digitalWrite(13,HIGH); or digitalWrite(13,LOW);. It may be possible to hack it into another Digital pin by removing remove the LED. None of the left TFT header's pins gets used, so it could be jumpered over there. (Removing the LED may not be necessary.)
The "Tinkerkit" outputs, at least, are supposed to be compatible with analogWrite. I am sure they are, but with my little experiment today, I can confirm that "D11" definitely is, with a period of 1.04msec (960Hz).
I am lazy and didn't write my sketch to check "D3" (maybe it's a different freq/timer used?). I will update when I have more info.
More experimenting, less about the Esplora and more about the motor circuit. Added motor capacitor to improve the Collector voltage condition in the Off state. The same goes if using a MOSFET (the Drain voltage condition in the Off state.) Go over to H-Bridge & Motors page for more info.
The sketch includes a brief 2.2kHz (50%) interval. You'll see that in the scope trace and the Esplora blue LED goes On.
The Adafruit Neopixel library is compatible with Esplora.
My experiment used D11 (see the dwg. above).