chiedo aiuto a voi del forum ma come si fa la directory che viene spiegata nei primi punti grazie a tutti
MosquitIO Setup Details
Configuring the Arduino Environment (Arduino 0018)
-
Create a new directory "mosquito" in your /hardware folder
-
Put the following in your /hardware/mosquito/boards.txt:
mosquito.name=MosquitIO (5V, 8 MHz) w/ ATmega168
mosquito.upload.maximum_size=14336
mosquito.upload.using=avrispmkii
mosquito.bootloader.low_fuses=0xc2
mosquito.bootloader.high_fuses=0xdd
mosquito.bootloader.extended_fuses=0x00
mosquito.bootloader.path=arduino:atmega
mosquito.bootloader.file=ATmegaBOOT_168_pro_8MHz.hex
mosquito.bootloader.unlock_bits=0x3F
mosquito.bootloader.lock_bits=0x0F
mosquito.build.mcu=atmega168
mosquito.build.f_cpu=8000000L
mosquito.build.core=arduino:arduino
- Put the following in your /hardware/mosquito/programmers.txt (for the Pololu USB ISP):
avrispmkii.name=AVRISP mkII
avrispmkii.communication=serial
avrispmkii.protocol=stk500v2
Configuring the board:
- Open the Arduino IDE
- Under Tools|Board select the MosquitIO
- Select Tools|Burn_Bootloader|w/_AVRISP_mkII
This will take a second, but it sets up the fuses correctly for 8MHz
Loading the Example Program:
- Open the Arduino IDE
- Under Tools|Board select the MosquitIO
- Be sure to attach your ISP, power on the board, and select the correct port.
Then upload the example sketch.
Running the Python Controller:
- Be sure to install Python-2.5, py-serial
- Run mosquitIO.py to see stuff happen...
- Documentation for the API is currently in the mosquitIO sketch.
Modes of the Default Firmware:
- When a joystick is attached, push it side to side once to start JOYSTICK mode.
- When any serial command is recieved, the system goes into SERIAL mode.
- To exit serial mode, send <255 11 ..(values of PAN, TILT, M1, M2, M3, IO).. 1>