Category:Arduino

From ElectroDragon Wiki
(Redirected from Arduino library)

Coding

Data Handler

Function Description Category
strncpy copy string or char array to string or char array String and Char
stringOne += 12345678 add to string String and Char
  • char charBuf[50];
  • stringOne.toCharArray(charBuf, 50)
string to char array String and Char

Board Manager Links

Name Board Link
ESP8266 ESP8266 http://arduino.esp8266.com/stable/package_esp8266com_index.json
Digispark ATTINY85 Digispark http://digistump.com/package_digistump_index.json
ESP32 ESP32 ttps://github.com/espressif/arduino-esp32 Need to install
Attinycore Attiny http://drazzy.com/package_drazzy.com_index.json Not include ATTINY13
Microcore Attiny, attiny13 https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json
DIY ATttiny Attiny, attiny13 https://raw.githubusercontent.com/sleemanj/optiboot/master/dists/package_gogo_diy_attiny_index.json
Redbear NRF51822 https://redbearlab.github.io/arduino/package_redbearlab_index.json
SAMD SAMD Official

Firmware

Use Arduino as ISP

There is sketch in the arduino IDE, for the wiring in the description should be:

Avr-isp-test.png
pin name not-mega mega(1280 and 2560)
SS(Slave Reset) 10 53
MOSI 11 51
MISO 12 50
SCK 13 52

upload the sketch and use Avrdude to test it, and should success on following picture


Burning bootloader

  • Tools you will need:
  • USBASP programmer: in our test, it's much faster than the USBtinyISP, don't know really know why, burning with usbasp only need 5-10 seconds, but usbtinyisp need around 1-2 minutes
  • ISP 10-6 Pins converter: It's really helpful to convert ISP 10 pins to ISP 6 pins, and also help you to remember the pins for ISP-6, because the silk print indicate it! Works for all the ISP-10 programmer.And Arduino only have 6-pin ISCP connector
  • Your arduino board: The MCU is already on the board and need to be programmed.
  • Connect the programmer with the converter like below, only need to remember MISO is always to PIN1:
  • Connect the board with USBASP to your laptop and burn, no need USB connect to the board anymore

Burning bootloader with other programmer, directly via hex file

Use Avrdudess programming

You can find the avrdude we used here.programmer

Deploy arduino

  • complied code and find file for example named "nrf24duino_start.ino.with_bootloader.hex" in folder C:\Users\Administrator\AppData\Local\Temp\arduino_build_981353
  • flash write into MCU
  • pro mini fuse set, L:0xFF, H:0xDA, E:0xFD, LB:0x0F


Specifications

Tips

Fix auto upload manually

  • Hold down the reset button when IDE show "compile ..."
  • Release the reset button when IDE show "uploading ..."

Extension

Documents


Documents

Subcategories

This category has the following 4 subcategories, out of 4 total.

Pages in category "Arduino"

The following 9 pages are in this category, out of 9 total.