RSS feed
  • Err, Cliard

    I got some hefty notes from Kimmo (creator of arduino_make.sh) and decided it would be best to take down the cliard repo until I have a little more original code/don’t have cliard as one big hack to Kimmo’s script. I feel bad “as if slandering his name.” Sorry if I got anyone’s hopes up, but I shouldn’t have released crappy modified code since it has the possibility of making the originator look bad. I look forward to a good release of cliard in the future.

  • Cliard | Command Line Arduino FTW

    Well, Cliard 0.1.0017 is… working :) It’s almost a direct descendant of Kimmo Kulovesi’s arduino_make.sh. I stripped out a lot of flac (placed it into ‘docs’ for now), changed a few things, and gave arduino libraries a much deserved home in ~/.cliard/arduino. The program itself is comprised of ~/.cliard/arduino/{examples,hardware,libraries} & ‘cliard’ executable & a perl serial interface (to restart arduino via software)…

    To install you have a couple options:

    1) PKGBUILD (If you’re on Arch Linux)

    2) http://github.com/fsk141/Cliard (If you’re on something else)

    • Just install avr-gcc, avrdude, wget, perl-devices-serial (http://search.cpan.org/~COOK/Device-SerialPort), & run ‘./install.sh’

    How to use:

    1) make a directory containing you .pde file (with the same name)

    Example: ~/LED/LED.pde

    
    #define LED 11
    
    void setup () {
     pinMode(LED,OUTPUT);
    }
    
    void loop () {
     digitalWrite(LED,HIGH); // turn led on
     delay(1000); // delay
     digitalWrite(LED,LOW); // turn led off
     delay(100); // delay
    }
    

    Inside the ~/LED directory execute ‘cliard’

    If everything goes well, then you should be able to plug in your arduino and type ‘cliard upload’, and enjoy your new .pde running on your arduino.

    There is a lot that needs to be worked on, but *all* of these things should get done in good time. I hope you enjoy cliard as much as I do. And happy hacking with your arduino. Oh and I’m thinking of making a dedicated page for cliard, but aren’t sure as of yet, so for now just check the gitlog for updates.

  • CLI Arduino | Recover from epic failure

    I finally got the command line arduino interface working, and just need to think of a way to package it up… It’s a program by Kimmo Kulovesi (http://www.cs.helsinki.fi/u/kkuloves/). The thing is that it works, but it seems like a big hack :) . It’s a giant shell script.

    If your interested in a pre-packaged release then take a look at the two files below. It should be a pretty straightforward drop in. I put both files in ~/.scripts & “alias ardmake=’~/.scripts/ardmake’ I also extracted Arduino 0017 into ~/ . I plan to refine the program (basically make my own program), and package everything up into a nifty little package. More to come soon.

    http://github.com/fsk141/scripts/blob/master/ardmake

    http://github.com/fsk141/scripts/blob/master/dtr

    ——

    I was editing my /etc/rc.sysinit recently and epically borked it. Good thing I made a backup :) Anyway it’s almost too easy to recover from epic non-boot failure.

    1) Boot grub & hit ‘e’ (to edit)

    • Add S (or the full word Single) to the end of your kernel line
    • Hit enter then ‘b’ (to boot your edited entry

    2) You will be dropped into single user mode (after you type your root password)

    • ‘mount -o remount,rw /’ (to mount / with read/write permissions)
    • fix what you broke, and reboot…