Skip to main content

Low cost microcontrolling

I had a terrible issue at work today. We certainly have to give up from a windows controlled device, depending on time critical software to use a cheap and easy to find microcontroller.

Making a couple of phone calls to local electronics shops, draws me to one single option. Microchip's PIC 16F family.

So, let's go to PIC world:
http://www.grennan.com/picprog/ (Programming the PIC16F84 with LINUX)
The PIC16F84 is easily found at any electronics shops in my town. It costs around R$ 15,00 (fifteen reais), local brazilian currency, which is around US$ 8.45.

Programming PIC’s in Linux using C with SDCC

Intro to Programming PIC Microcontrollers in Linux

http://www.lancos.com/prog.html (PonyProg - GLP Serial devices programmer)

http://www.freenet.org.nz/sdcc/ (sdcc for PIC HowTo)

There is a good Spanish site about PIC projects at http://www.micropic.es/

Comments

  1. Thanks for the links.
    I just got tired of Windows and I was a little worried about programming PICs in Ubuntu.

    ReplyDelete

Post a Comment

Popular posts from this blog

More trickery with gnuplot dumb terminal

In my post " Plotting memory usage on console " the chart doesn't pan the data. Now, using a named pipe, the effect got a little bit nicer. First, we have to run the memUsage.sh script to get a file filled with memory usage info: ./memUsage.sh > memUsage.dat & Then we have to create a named pipe: mkfifo pipe Now we have to run another process to tail only the last 64 lines from the memUsage.dat while [ 1 ]; do tail -64 memUsage.dat> pipe; done & And now we just have to plot the data from the pipe: watch -n 1 'gnuplot -e "set terminal dumb;p \"pipe\" with lines"' And that is it!

powerpoint slides to jpeg

Looking for some way to convert power point slides to JPG, I've found this site: http://www.commandlinefu.com/commands/browse It has tons of good linux command line tips. And here is the tip about the pdf to jpg which brought me there: http://www.commandlinefu.com/commands/view/719/convert-pdf-to-jpg And to convert the powerpoint to pdf before, one can issue the unoconv command: unoconv -f pdf slides.ppt

Pettry rendered LaTeX equations using PHP

When I was writing a simple scientific webapp, during my undergrads studies, I needed to generate some equations to be shown by the app. I was already familiar with LaTeX equation formatting syntax, so I decided to use this nice peace of software. So, after "googling" a little, I found the imgtex , written by Koji Nakamaru , which is a fast CGI script, written in perl. What I did, was port it to PHP. To run it, you must have a LaTeX distribution and the dvipng software both installed on the same machine which you will run the PHP script. Here is the PHP code: To use this code, you just have to pass the LaTeX commands through GET to the PHP. For example, adding the following string to your URL: http://localhost/imgtex.php?res=300&cmd=x=\frac{-b\pm\sqrt{-4ac}}{2a} The res variable sets the resolution for the generated image and the cmd specifies the LaTeX command. This way, the above URL will produce the following image: