🚚 Free delivery on orders over: €35 Croatia • €60 EU • $100 US

HOW TO PROGRAM CRODUINO DAMBA?

HOW TO PROGRAM CRODUINO DAMBA?-Uncategorized

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

Confirm with OK.

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

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

STEP 5 

Before any connection on Basic2, upload ArduinoISP 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.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.

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

 

 

 

 

HOW TO CONNECT DAMBA?

NOTE: The illustration shows how to connect to Croduino Basic2, the same goes for Croduino Basic. 

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.

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 of Croduno Damba find here.