Tagged: arduino RSS

  • Jonny Gerold 2:01 pm on November 28, 2009 Permalink | Reply
    Tags: arduino, , meh   

    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.

     
  • Jonny Gerold 3:52 am on November 28, 2009 Permalink | Reply
    Tags: arduino,   

    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)

    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.

     
    • Kimmo Kulovesi 10:35 am on November 28, 2009 Permalink

      Hi,

      As the original author of this script, I’d like to point out that the ~/.cliard home for the Arduino installation and Arduino libraries seems like a very bad move. I suggest free placement of the Arduino installation itself and libraries in ~/sketchbook/libraries for compatibility with the latest Arduino IDE.

  • Jonny Gerold 10:10 pm on November 25, 2009 Permalink | Reply
    Tags: arduino, , grub, mount   

    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…
     
  • Jonny Gerold 3:40 pm on November 24, 2009 Permalink | Reply
    Tags: arduino, serial, ttyS0, uucp   

    Allow Normal Users to Use Serial Port (USB Serial) 

    OMG: http://www.sparkfun.com/commerce/news.php?id=305 << Can’t wait for Free Day, it’s going to be epic.
    Anywho, that’s gotten me excited, and I pulled out my Arduino, to continue reading ‘Getting Started With Arduino’ I’m working along, and went to start up the ‘Arduino 0017′, and my serial port didn’t work. Well I tried it via sudo, and it worked. So at first I added sudo to the ‘/usr/bin/arduino’ executable. Yet this was very hackish, so I went looking for the solution.

    
    gpasswd -a fsk141 uucp
    

    Where ‘fsk141′ == your username… This will add you to the uucp group, where you can enjoy serial access. Woot!

    Now I’m looking at how to ditch the Arduino IDE, and compile manually. It has something to do with a makefile, but I haven’t gotten it to work yet… Updates to follow one I get CLI upload to the Arduino

    Resources:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel