• Worldwide Shipping

  • 24/7 Customer Support

  • FAQ
  • Worldwide Shipping

  • 24/7 Customer Support

  • FAQ

How to program Croduino Damba?

How to program Croduino Damba from Arduino software?

STEP 1: First, we must install Arduino IDE software. If you still haven't done it, you can find directions here. For this procedure, you must have installed the Arduino IDE 1.6 or more. If you have an older version, uninstall it and install a new one using these directions.

Also, if you do not have drivers for the CP2102, install them.

STEP 2: Open Arduino IDE. Go to File->Preferences on Windowsu, and for OS X users, go to Arduino->Preferences. You will se a field Additional Boards Manager URLs. On that spot, you need to paste the following: https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

2

Confirm with OK.

STEP 3: Go to Tools->Boards->Boards Manager.

3

STEP 4: Find: attiny by David A. Mellis, select it and click install.

4
5

STEP 5 
Before any connection on Basic2, upload this code on Basic2. This is a necessary step to allow the transmission of code to Dambu ​​(not the Basic / Basic2) and the power to Dambu.

STEP 6 The process itself will take some time, and after it is finished, feel free to close the Boards manager. Now under Tools-> Board, you will have some new options. Select ATtiny.
7

STEP 7: Now under Tools-> Board we have a few more things that we have to set. The changes that we still need to do are: click Processor, then choose ATtiny85. Of course, we need to select the appropriate serial port.

8
In addition, it is necessary to set the programmer to Arduino as ISP.

10

How to connect Damba?

NOTE: The illustration shows how to connect to Croduino Basic2, the same goes for Croduino Basic. If you do not have on hand one of these boards, please leave a comment or send your request by email.

Pay attention to the capacitor connected between the GND pins (shorter legs capacitors) and rst (longer legs capacitors). Without it, the capacitors will not be able to insert code to Damba, but it will remain on Croduino which you use to upload code to Damba.
Untitled Sketch_bb

How to write code for Damba?

All that is true for Arduino / Croduino generally applies to Croduino Damba. So, all the functions, types of variables, the principle SETUP and LOOP's. There are small details that do not work in the Damba, but it is more for advanced users.

This example will blink LED lights connected to the DO pin on Damba.

void setup() {
pinMode(0, OUTPUT);
}
void loop() {
digitalWrite(0, HIGH);
delay(1000);
digitalWrite(0, LOW);
delay(1000);
}

NOTE: LEDs on Croduino Damba are not signal (power) to reduce battery consumption. More on energy of consumption ofCroduno Damba find here.

Leave a Reply