Posted on
  • I had one around, (exactly this: https://www.sparkfun.com/products/12574) and tried interfacing. It's been pretty easy, I just connected pin 11 to 3.3v, pin 12 to GND, pin 13 to A2 and pin 14 to A3 and that was it.

    s = Serial2;
    s.setup(115200, { parity:'none', bytesize:8, stopbits:1 });
    s.onData(function(d) {
        var data = d.data;

    With this code I can echo stuff written to the corresponding serial port on the pc.

  • What is the goal? If you're just trying to control espruino over Bluetooth, you can solder an hc-05 onto the bottom of the espruino board, pair with it and connect via the ide.

  • I know. But I had a rn-42 instead of a hc05 ;-)

  • Do you think it's pin compatible with the HC-05?

    You can also do Serial2.setConsole(); and then you can program Espruino via Bluetooth too :)

  • It's not pin compatible (I actually have a photo of how I wired it, but I never managed to understand how to upload to this forum). And yes, I could put the serial there.. but I need it for midi input instead.

  • Hi Loop, on the photo front create an account on something like photobucket (photobucket.com). Free. Upload the photo there. Grab the link from photobucket and paste in to the popup that appears when you click image.

  • Photo upload should work (by clicking 'upload a file'), but there was a longstanding bug where you couldn't post an image in the first post of a conversation. That actually got fixed yesterday it seems ;)

  • Yes, that works (I just tried) but to embed an image in the reply itself the "Image" button wants to point to an http:// address. Would be much more convenient if it could grab an image from the local device and upload it somewhere !

  • Cool! Enjoy the wiring photo in all its dubious glory!

    1 Attachment

    • IMG_20140406_181924251_edit.jpg
  • Lovely :)

  • hi there !

    aside note on the RN42:

    • it seems it can be used as bluetooth hid device from firmware version 6.03+ ( keyboard, gamepad, mouse, mouse+keyboard combo, digitizer, sensor, "use cfg* ?" ) additionally to SPP.
    • it also supports switching between spp & hid if the GPIO11 pin is high during power up

    ( I am currently looking for a way to use an original Espruino board as a bluetooth hid device additionally to a serial one & then remembered it didn't support that, contrary to Pico, WiFi & Puck :/ - so the option of switching between spp & hid is quite nice although we're locked to the supported hid report descriptors .. )

    hoping this helps someone ;)

    *don't know yet what this stands for ( consumer report ? .. )

  • Wow, that new firmware sounds great! If you get it working, some kind of module that exposed the functionality would be great (you might even be able to make the API the same as it is for Puck.js/etc)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview


Posted by Avatar for Loop @Loop