Detailed explanation at https://binefa.cat/php/doc/nrf24l01/ This sample of radiocontrol using two Arduinos is based on this post : http://blog.riyas.org/2013/12/working-quick-start-guide-for-nrf24l01.html
Autor: jordi
Using digital I/O. Arduino + firmata + pyFirmata + pyQt
Arduino Nano + Board 0101v4 + Board 0104v3 : nano-eCat pinout : pyQt + pyFirmata custom program : This layout is designed with Qt Designer : led_uSw.ui (pyuic4 led_uSw.ui > ui_led_uSw.py) It can be converted in Python : ui_led_uSw.py Code to use nano-eCat’s P2 : exFirmata03.py Code to use nano-eCat’s P1 : exFirmata03P1.py Using digital outputs : #self.ledB7 = 13 # P2b7#self.ledB6… Continueu llegint Using digital I/O. Arduino + firmata + pyFirmata + pyQt
Arduino + Raspberry Pi using pyFirmata and pyQt
Steps on Raspberry Pi : 1) Install pyQt : $ sudo aptitude install pyqt4-dev-tools 2) Install pip $ sudo aptitude install python-pip 3) Install pyFirmata $ sudo pip install pyfirmata 4) Download qtgui02.py (Based on qtgui.py) $ wget https://www.binefa.cat/php/raspberryPi/python/pyQt/qtgui02.py.tar.gz $ tar -zxvf qtgui02.py.tar.gz Steps on Arduino : 5) Install standard firmata on Arduino 6) Mount Arduino Nano… Continueu llegint Arduino + Raspberry Pi using pyFirmata and pyQt
Serial read using Ardublock
SCoop + Ardublock
First two options are not optimal because event are detected after delays. The last two options are using SCoop Sleep instead of delay. The last two options are better than the first ones. SCoop should be installed at Arduino IDE
SCoop installation on Arduino IDE
SCoop : Simple Cooperative Scheduler for Arduino and Teensy ARM and AVR 1st option) Go to official SCoop website : https://github.com/fabriceo/SCoop/ and follow its instructions 2nd option) Once Arduino IDE is installed on Debian, download https://www.binefa.cat/arduino/ardublock/SCoop.tar.gz at /usr/share/arduino/libraries and uncompress it. clot@debian:/usr/share/arduino/libraries$ wget https://www.binefa.cat/arduino/ardublock/SCoop.tar.gz –2014-11-18 17:26:30– http://www.binefa.cat/php/arduino/ardublock/SCoop.tar.gz S’està resolent www.binefa.cat (www.binefa.cat)… 37.58.75.228 S’està connectant a… Continueu llegint SCoop installation on Arduino IDE
How to recover bricked fake FT232
First off, I’m against piracy in software and hardware. I understand FTDI trying to protect themselves from piracy and fake replicas. Having said that, clearly, end users have bought electronic products legally and most of them are out of warranty because they had bought them years ago. End users can blame and complain to their… Continueu llegint How to recover bricked fake FT232
Arrencant Debian des d’una memòria USB
Aquesta és una imatge del sistema operatiu Debian pensat per a explicar programació als cursos de robòtica i informàtica a l’Escola del Clot – Jesuïtes El Clot. Per aquesta raó el nom d’usuari, contrasenya d’usuari i contrasenya de l’usuari primari és clot. Degut a que a diverses assignatures ens cal anar afegint programari durant el… Continueu llegint Arrencant Debian des d’una memòria USB
Arduino’s VU-meter using ArduBlock
This is chapter 3 about using Ardublock . It reads an analog value from a potentiometer and it writes to 8 leds VU-meter style. (link)
Ultrasound Distance Measurement
This is chapter 2 about using Ardublock . It starts reading distance from ultrasound sensors and showing it on Serial Monitor. It follows with an improvement adding an LCD. (link)