Author Topic: Bluetooth?  (Read 7033 times)

Js3

  • Newbie
  • *
  • Posts: 2
Bluetooth?
« on: August 29, 2012, 04:39:02 pm »
I'm thinking it may be too late for a bluetooth shield for the Digispark, so what would be the next best/easiest/not too expensive way to add bluetooth capabilities to the Digi?
« Last Edit: August 29, 2012, 04:39:02 pm by Js3 »

robb

  • Newbie
  • *
  • Posts: 5
Bluetooth?
« Reply #1 on: August 29, 2012, 09:01:21 pm »
You can get simple bluetooth modules on ebay and elsewhere. Like this one: http://www.dealextreme.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299?item=22

Nice thing they only need two pins. I\'m wondering if it\'ll be possible to program the digispark wirelessly via two serial pins!

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Bluetooth?
« Reply #2 on: August 29, 2012, 10:11:04 pm »
TLDR; For programming, No, unless you do a bunch of hacks. For everything else, one of these serial modules will work great! Be sure to get a 5v version.

The DigiSpark uses a usb bootloader - implementing usb as software inside the microcontroller itself, so it\'s a bit different to most arduino\'s where a separate chip provides a serial interface and the microcontroller has a serial bootloader.

To allow wireless programming, you\'d need to replace the bootloader on the digispark with a serial bootloader like this one: http://jtxp.org/tech/tinysafeboot_en.htm - to do that you\'ll need a High Voltage Serial Programmer however, which tend to cost around $50. There is a possibility someone could write a program which upgrades the bootloader on the digispark in place, but so far nobody has done this.

If you aren\'t aiming for wireless programming, you sure can hook up one of those serial bluetooth modules and use it to talk with your digispark from any computer with bluetooth and a bunch of PDAs and phones and things like that. Some of these cheap serial bluetooth modules use iPhone compatible chipsets too - allowing it to work with custom iPhone apps.
« Last Edit: August 29, 2012, 10:12:29 pm by Bluebie »

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Bluetooth?
« Reply #3 on: November 03, 2012, 07:17:13 pm »
Hey Presto! Someone wrote the program which upgrades the bootloader on the digispark in place without the $50 gadget! https://github.com/Bluebie/micronucleus-t85/tree/master/upgrade

If you guys want a serial bootloader for wireless programming shenanigans, someone post me some wireless receiver gadget and I\'ll be more than happy to get it working and make some simple instructions on how to modify a digispark to have wireless programming instead of USB :)

Or you can DIY - it\'s open source and stuff, but I\'ll take no responsibility for anyone breaking their digisparks using that crazy upgrade firmware generator!

Cool thing about serial bootloaders as well - they take up less space than USB ones, so you could probably have about 1.5kb more programming space on your spark.

juanehartwig

  • Newbie
  • *
  • Posts: 1
Re: Bluetooth?
« Reply #4 on: March 19, 2013, 09:40:57 am »
Hi Blubie,


do you know of an specific "cheap" bluetooth module model that supports bluetooth 4.0 and that be capable of communicating with Bluetooth Smart (BLE) devices  (such as iphone 4s or 5) without jailbreaking?
The one referred before (Arduino BLE Shield) is way too big for a good Digispark application (see pic).


Regards,


JEH

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: Bluetooth?
« Reply #5 on: March 19, 2013, 04:35:04 pm »
I have never used bluetooth