3D Robotics

Finally! BlimpDuino code now in beta!

Jordi's done some heroic work squeezing the maximum out of the Arduino platform (with some help from Arduino co-founder Massimo Banzi. We finally have a code base that does everything it's supposed to. Here's the code. It works with any version of the board from 431 up.
(Note that we've also changed the voltage regulator to this through-hole one, which has a more linear response curve for when battery voltage is dropping. As you can see above, we just soldered it on to the same SMD traces on the old board, but the new version of the board--V432--is designed for this new voltage regulator.) Jordi explains what's new in the code: "Now you can read two channels from the receiver.. Blimpduino will detect when you have the receiver connected and will run in manual mode... If not, autonomous... You have to connect the vectoring servo directly to the receiver in order to fly in manual mode.. The two RC input channels control the motors for; forward, back, left and right... The problem was: I can't use pulseIn function because is not supported in the pins PB6 and 7.. so i have to use the timer1 to count the pulse length... The Atmega168 only has 3 timers. The timer 0 is for millis() counter, the timer1 is for pulsing the vector servo in automode and reading the RC inputs in manual mode, they can't be used at the same time... and the timer 2 is to control the PWM of the motors... I also solved an small bug in the anti static friction module of the motors... I love to fly in manual mode, Oliver [Jordi's baby] was scared, hehehe... Blimpduino is a very funny toy.... =)" Guys, this is world-class Arduino coding. Read it and learn ;-) Congrats, Jordi! Here's a pic of it all taped to the bottom of a blimp--not pretty, but it works!

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • There is a way to hack the V43 board to run Jordi's software (written for the V431 and V432 boards).

    The layout diagrams for each board show that the pin used in V43-board for R4 (the resistor associated with the LED for the East IR detector) is now used for the SRV_OUT signal line on the V431 and V432 boards.

    To use the latest code on the on the V43 board, you can solder a lead between the SRV_OUT signal line and the chip-side of R4 to redirect the signal from the LED to the servo.

    To complete the software side of this hack, comment out any reference to led_east in the V431 code. Since the led_east won't light, it might be useful to code in all other LEDs to light when the East IR is activated.

    Not too hard of changes to make - Vince
  • Hi Chris,
    Many thanks.
    I'll take a good look at it all.
    Phil
  • Developer
    Don't worry about the library's, all are build in in the code, actually are C++ functions, one of them extracted from some arduino librarys that is not support by arduino IDE 12 or either arduino running at 8mhz...

    Good luck,...
  • 3D Robotics
    Phil,

    I've now posted all the details for the V432 board. The code will run equally well on 431, but if you want to have the latest version with a slightly better power regulator and better labelling, there it is.
  • Hi Jordi, Chris,
    Any plans to release the library modifications ?

    I'll get one of the 4.3.1 boards when I can but I would like to be able to tweak things if I need to.
    The PDE's look great...

    Thanks
    Phil
  • 3D Robotics
    No. the 431 version of the board is here.
  • Developer
    Phil,


    You can open it with arduino IDE 12, and it will compile with no problems... =), all the modifications are inside the code... So no problem... But this code will only run in blimpduino 4.3.1 hardware..

    Jordi
  • 3D Robotics
    Phil,

    We did have to make some modifications to the libraries (we're using some pins that aren't normally available in Arduino), but for details I'd have to ask Jordi.
  • I see lots of .c.o files in the rar.

    Are there any changes to the core arduino modules or is it all in the .pde files ?

    Regards
    Phil Wilshire
This reply was deleted.