Jewel Bots, your new tech-girlfriend bracelet

Jewel Bots is a code bracelet -which started as a Kickstarter project. The bracelet allows you to code the LEDs and buzzer built into the bracelet.
I have been allowed to test a Jewelbot and here you will be immediately thrown into the open source program the Arduino IDE, so why should you as one of the first download it on Arduinos website.

Once done, you need Jewel Bots file library into the Arduino IDE. There must go through several stages, which I will outline below. This guide is mostly aimed at Mac users.

arduino

1) Start by opening the Arduino, and then click Arduino and Preferences. Is it on the PC, click File, then Preferences.

2) Next, down to where it says:‘Additional Boards Manager URL’ Now you Copy / paste the following into the box next to (make sure to delete if there is something in advance, and remember and get all the text below):

https://jewelbots.github.io/arduino-library/
package_jewelbots_index.json,
https://jewelbots.github.io/arduino-firmware/
package_jewelbots_firmware_index.json,
https://jewelbots.github.io/arduino-friendship/
package_jewelbots_friendship_index.json



Click Ok and now you shut the program down and re-open it again.

3) Now select Tools up in menubaren -> Board: Arduino Yun —> ‘Boards Manager…‘.

And install 3 Jewel Bots file directories for Boards. It's different two system modes it is simple coding to your bracelet –Solo Mode or whether it is multi Jewel Bots Friendship Mode and Firmware Update.

To install the three files is a hint to search for them by typing J in the search box, here are three Jewel Bots files back. Then click into the three text fields, so that a Install button above. Click Install.

When the installation is complete there will be a green text up with INSTALLED out for each.

Then you once again close the Arduino IDE down and reopen it.

 

Great, now you're ready to set up a code file that can be loaded into Jewel Bots.

4) Open a new code file in File —> New

new file

5) In this guide, we only work with Solo Mode, therefore, must be set for it.

Open Tools -> Board —> Solo Mode

6) Further, the USB port is recognized. This option is also in Tools, each port has different numbers therefore it is xxxxxx.

Tools —> Port —> dev/cu.usbserial-XXXXXX (On the pc is the COM xx port)

7) Delete the code from the file and you can now insert your own code. Here is given a simple code example. It causes an LED to light Magenta colored:

void setup() { // put your setup code here, to run once: 
} 
void loop() { // put your main code here, to run repeatedly: 
LED led; led.turn_on_single(SE, MAGENTA); 
}

To upload code file to Jewel Bots you need to:

  • Save the file.
  • JewelBots i i USB stik
  • Hold the center button (in English Magic button) for 2 seconds at least.
  • The light goes out and you can now upload file. See below:

magic button

Upload

Click on -> arrow at the top of the menu bar in the Arduino IDE file. Give it some time to upload and it will boot up and finish with a red LED lights up, it's ready. Take it out of the USB port and it will now run the code; shows a magenta colored LED lights.

Screen Shot 2017-04-22 at 22.12.05

Tip try switching MAGENTA out with other color codes: BLUE, RED, GREEN, YELLOW, CYAN, WHITE and SE out with SW, NW, NE

when now more to be to encode your Jewel Bots together, must remember to change the Tools -> Boards –> Jewel Bots Friendship Coding. And so I recommend to go to Jewelbots site and read Code with Friends, or wait for the next Danish guide here from 🙂

Play with colors, names and time

Fancy something fast bling bling on your Jewel Bots, the following code good to play with, here you can change the name, color and time:

LED led;

Animation animation;
Timer timer;

/*
* Notes:
* Available Colors: BLUE, RED, CYAN, GREEN, YELLOW, MAGENTA, WHITE
* Available Animations: Rainbow, Jewelbots Logo, Breathe Single Colors
* LED Positions: NW, NE, SW, SE
*/

void setup() {
 // put your setup code here, to run once:
}

void loop() {
 // put your main code here, to run repeatedly:

//Playing with LEDs
 led.turn_on_all(BLUE);
 timer.pause(500);
 led.turn_on_single(SW, GREEN);
 timer.pause(500);
 led.flash_single(NE, RED, 1000);

//Playing with Animations
 animation.rainbows();
 timer.pause(500);
 animation.jewelbots_logo();
 timer.pause(500);
 animation.breathe_single_color(MAGENTA);
}

I have tested with great pleasure:

The code I found here in this challenge: http://community.jewelbots.com/t/week-of-code-jewelbots-challenge-one/479

Support

I highly recommend going more into Jewelbots community, there are good guides and challenge to embark on.

The code behind can be found at Github

Happy Coding 🙂
my @mivsen

 

Leave a Reply

Your email address will not be published. Required fields are marked *