raspberry: installing pygal

apt-get install python-pip
apt-get install libxml2-dev libxslt1-dev gcc python2.7-dev

root@raspberrypi-1:/home/pi# pip install pygal

Posted in bash, Debian | Leave a comment

1.8″ TFT Adafruit display(ST7735) and Arduino uno

draft

Install Adafruit ST7735 Lib and the Adafruit_GFX library for Arduino.

I had to upgrade ino to 0.3.6 in order to be able to build the example srcipts:

pip install --upgrade ino

I renamed the example files to .ino (’cause .cpp & pde gave errors)

Make sure you name the directories as in the documentation.


root@tortuguita:/usr/share/arduino/libraries# ls -lh Adafruit_*
Adafruit_GFX:
total 36K
-rw-r--r-- 1 root root  13K Jul  5 23:51 Adafruit_GFX.cpp
-rw-r--r-- 1 root root 2.8K Jul  5 23:51 Adafruit_GFX.h
-rw-r--r-- 1 root root 8.0K Jul  5 23:51 glcdfont.c
-rw-r--r-- 1 root root 1.4K Jul  5 23:51 license.txt
-rw-r--r-- 1 root root  947 Jul  5 23:51 README.txt

Adafruit_ST7735:
total 40K
-rwxr-xr-x  1 root root  22K Nov  8 19:44 Adafruit_ST7735.cpp
-rwxr-xr-x  1 root root 4.7K Nov  8 19:44 Adafruit_ST7735.h
drwxr-xr-x 10 root root 4.0K Nov  8 19:44 examples
-rw-r--r--  1 root root 1.1K Nov  8 19:44 README.txt

Then I built it using inotool.

Posted in arduino, raspberry pi, tech | Leave a comment

send SMS with arduino GSM shield

DRAFT

Recipe:

  • sendSMS example sketch from arduino
  • picocom [1]
  • SIM card from a French local provider
  • The serial monitor from the Arduino IDE can be used, too.



    [1] Don’t have what I type echoed, which is frustrating

     picocom --omap crlf --emap crcrlf,delbs --baud 9600 /dev/ttyACM0 

    Posted in arduino | Tagged , , | Leave a comment

    Arduino GSM shield with SIM

    image

    image

    image

    image

    Posted in linux | Leave a comment

    moon & mars #astrophotography

    original pictures, no edit, no quality
    Pentax K30 + opteka X2 teleconverter + Opteka 500 mm mirror lens

    imgp0712_dng_shotwell

    imgp0699_dng_shotwell

    imgp0711_dng_shotwell

    imgp0710_dng_shotwell

    imgp0709_dng_shotwell

    imgp0708_dng_shotwell

    imgp0707_dng_shotwell

    imgp0706_dng_shotwell

    imgp0705_dng_shotwell

    Posted in astrophotography | Leave a comment

    raspberry pi & telescope

    Ingredients:

  • Raspberry Pi model 2
  • TFT touchscreen
  • Adafruit TFT/camera Soft
  • Raspberry Pi camera module
  • Celestron First Scope
  • USB tablet charger
  • Disclaimer

     This is a _really_ low cost astrophotography device implementation, simple to build and not intended to do complicated (i.e. long exposition, tracking) photography. My main inspiration to build it was my nephew ;) ) 

    What we got is:

    rpi and celestron

    And what we see is:

    IMG_0031

    IMG_0030

    IMG_0029

    IMG_0028

    IMG_0027

    IMG_0026

    IMG_0025

    IMG_0024

    IMG_0023

    IMG_0022

    IMG_0021

    IMG_0020

    IMG_0019

    IMG_0018

    IMG_0017

    source for TFT
    source for Adafruit software

    TODO
    ====

  • how to fix the USB chager to the telescope (Hint: velcro)
  • how to fix the R-Pi to the telescope (Hint: see the rubber bands in the picture?)
  • how to fix the Pi Noir to the eyepiece (Hint: look too previous methods)
  • Posted in astrophotography, raspberry pi, tech | Tagged , , , , | 6 Comments

    Unboxing the GSM Arduino Shield

    Today I received the Arduino GSM shield
    It includes a SIM card you can activate (or use your own SIM card)
    First test script successfully built (using inotool).

    So far so good!

    Some eye candies for you:

    2014-04-10 09.56.42

    2014-04-10 10.01.02

    2014-04-10 10.01.19

    Posted in arduino | Tagged , , | Leave a comment

    force C like syntax highlighting to any file on Vim

    vim +"set filetype=c"

    you put this on your .bashrc or so

    alias vimc='vim +"set filetype=c"'

    Posted in arduino, bash, linux | Tagged , , | Leave a comment

    the art of food #raclette

    The glowing side of a “raclette”

    imgp0694_dng_shotwell

    imgp0696_dng_shotwell

    Posted in personal, photo | Tagged , , , | Leave a comment

    colza fields photos

    A few random pictures of a colza field near my town.imgp0685_dng_shotwell

    imgp0686_dng_shotwell

    imgp0687_dng_shotwell

    imgp0688_dng_shotwell

    imgp0689_dng_shotwell

    imgp0690_dng_shotwell

    imgp0691_dng_shotwell

    Posted in photo | Tagged , , , , , , | Leave a comment