background preloader

Smart home automation webserver on OpenWRT router WR703N interfaced to Arduino, compared to Raspberry Pi and Ubuntu

Smart home automation webserver on OpenWRT router WR703N interfaced to Arduino, compared to Raspberry Pi and Ubuntu
Download the WR703N Digest (340MB zip file): Dear Reader, there are many Linux boards on the market: Bifferboard, NanosG20, Foxboard, Beagleboard, AlixPC, Android phones and tablets, routers, netbooks, and most recently the Raspberry Pi. How to decide what to choose? So far the nicest solution I have found is one of the world’s smallest pocket routers TP Link WR703N. It must be reflashed with OpenWRT Linux, where most necessary program modules exist, however not everything is compatible with Debian Linux. Home webserver: Wifi HD webcam Electricity meter readout: Limitations are that internal flash 8 MB is quite small, but can be extended using external USB flash stick or HDD. Digest zip file (340 MB) holds information about setting up different functions on WR703N: Related:  VisualizationRaspberry

Cheap and Easy Arduino Wi-Fi Hack I was sitting around and messing with my Arduino UNO and an ENC28J60 Ethernet module, and thought to myself it would be cool to have a Wi-Fi shield, when I realized I did not have to buy a shield as I had the components and all I had to do was hook them up together ( pure intense light bulb moment!!). When I travel carry a small Wi-Fi router to use in hotel rooms (TP-Link TL-WR702N) which is a 150Mbps access point, I remembered that it could be configured as a client among other modes it has. I reconfigured it as a client and assigned an IP number checked I could access it over my home Wi-Fi network , by plugging into a desktop’s LAN port, also checked that it had access to the internet . I then plugged the TP-Link TL-WR702N into the ENC28J60 Ethernet module and the UNO and ran the etherShield web switch example which came with the etherShield library and it worked. The router runs of 5 volts via a mini USB connector which works out well with the Arduino.

Arduino + Processing: Make a Radar Screen to Visualise Sensor Data from SRF-05 – Part 2: Visualising the Data This is where all the work is done to read an interpret the values from the servo and the sensor. If the readings are to erratic then you won’t have nice shapes. Also if you don’t allow enough time to the signals to be sent back then you’ll get false distance readings. So this code is only as good as your Arduino code and sensor setup. Took me a few evenings to work this out to get it how I wanted, the hardest bit is the trigonometry involved which isn’t that difficult, everything else is done by loops and a few IF statements. I use the FOR loops alot because the all the elements can be displayed programmatically without having to write each rectangle, cirle and line to the screen with their own statement. If you’re not familiar with Processing then head over to Processing.org. First we have to setup our variables, background and load in the serial port libraries to ensure we can read the data sent by the Arduino. The end result Here’s a video below of it all working!

Raspberry PI en mode HTPC et pilotage via télécommande Qui ne connait pas le Raspberry Pi ? Bon pour ceux qui reviennent d’une transhumance de deux ans dans les montagnes sur le plateau du Larzac voici un petit rappel. Le Raspberry Pi est un ordinateur de la taille d’une carte de crédit, créé par la fondation du même nom. A la base, destiné à encourager la programmation informatique, son faible coût en a fait un objet prisé et sujet à des montages toujours plus ingénieux. Pour en savoir plus je vous propose de relire le billet de Mickael de planete-domotique à ce sujet. HTPC quésako « qu’es aquò » ? HTPC ou Home Theater Personal Computer est un ordinateur que l’on utilise comme home cinéma. En clair, je vous propose de transformer votre TV ancienne génération en TV connectée nouvelle génération. L’un des gros avantages du Raspberry Pi c’est que son système d’exploitation tient sur une carte SD. Quelle image installer ? Actuellement il existe 3 gros systèmes sur le créneau des HTPC : OpenElec, Raspbmc, Xbian #! cp . irw

Install OpenWRT on TPlink WR703N - XinCheJian This tutorial aim to install and run the Open WRT distribution on a TP-Link TL-WR703N. Open WRT Open WRT is a light distribution aim to be install on modem and wifi routers. This distribution is free and open-source, and have a strong community of hackers, developers using it. You can find more information here : Open WRT wiki TP-Link WR703N The TP-Link router is a small wifi hotspot, with a USB port that make highly customizable. Specifications : Atheros AR7240 CPU (400Mhz) Atheros AR9331 Chipset (integrated wireless) 802.11 b/g/n 150Mbps (130Mbps real) wireless power output 20dBm - 100mW 4 MB flash memory 32 MB RAM Tiny form factor: 5.7cm x 5.7cm 1x LAN port 1x USB 2.0 port 1x mini USB port, for power 1x LED (customisable once OpenWRT is installed) This guide is intented to be for total beginner, with all the code to write. /! Linux Our Linux version is Ubuntu 12.04 LTS, up-to-date, with Firefox 13.0.1 Plug it! and then 软件升级 to get this screen: Then wait until the router reboot. /! or

Internet Graphical Interface for Arduino This App Note describes how to implement a web temperature dashboard for Arduino Ethernet. It is intended to show you how the Memory-Map concept works in the practice and the way in which it can help you to improve your Arduino projects with some few simple modifications. The system shown consists of an Arduino with a temperature sensor (eg. a LM134 lineal temperature sensor IC) connected to the NearBus Connector through internet to display the temperature value in a graphical way using the Google Spreadsheet Web App (as shown below). How does it work? As detailed in the overview section the NearBus system has two working modes, the VMCU (virtual microcontroller unit) mode and the TRNSP (transparent) mode. Under the TRNSP mode the NearBus system works replicating two groups of 8 registers each (Reg_A and Reg_B) in a periodic way : Reg_A: Data sent from Microcontroller to the Cloud.Reg_B: Data received in the Microcontroller from the Cloud.

Raspberry, Asterisk, Freepbx, SPA3102, Freebox tout y est !!! Mickael m’a proposé de me lancer dans un petit projet avec une raspberry-pi pour y faire tourner le serveur PABX Asterisk ! Du coup super motivé, je me lance dans la rédaction de cet article en espérant qu’il va vous aider Voila une petite description d’Asterisk sortie tout droit de Wikipedia ! : Rassurez vous, j’en vois déjà qui ont peur … je ne vais pas vous en mettre plein la tète sur la VOIP avec les différents protocoles.. le but de cet article est de faire que ca fonctionne J’ai utilisé la distribution Raspbx, basée sur (Debian7 / Wheezy) avec dedans : Asterisk 11.3.0FreePBX 2.11.0.0rc1.2 Pour le téléchargement de la carte SD pré-installé, c’est ici : (elle fait 521mo) Une fois téléchargée il faut la dézipper puis l’installer sur une carte SD (attention une carte au mini de 4gb, moi dans ma maquette j’ai pris une carte de 8gb) Vous pouvez aussi acheter la SD Card avec Asterisk pré-installé directement sur la boutique : ICI Voila ! asterisk –r

Dragrove Introduction Dragrove is an open-source-based generic gateway for the Internet of Things. It combines a Dragino (Easy Internet Access, powerful CPU, Linux system), an Arduino-compatible daughter board (monitoring the physical world), and RF networks like XBee. The base board Dragino MS12 is a WiFi/Linux-enabled appliance for MCU projects. The goal of the Dragino is to solve the connectivity problem and greatly enhance micro-controller products such as the Arduino. The Arduino compatible daughter board for the Dragino was designed by SeeedStudio. Model: WLS03261P Features Network gateway: bridges physical measurements with the Internet; User-friendly. Specification 8M Flash, 32M SDRAM; 1X10/100M Ethernet Port; DC Input 9V~15V; Wifi:802.11b/g; Wifi Power: 20dbm; Frquency band: 2.412GHz~2.472GHz; External antenna; 8 External sensor connectors plus 2 internal Grove connectors. Bug Tracker There are two known bugs in the Dragrove daughter board's design: //COLD_RST pin is PD4 i.e. Tutorial 1.)

Realtime Graphing of Accelerometer/Gyroscope Data During my naive days as a university student the only time I graphed data was when some professor required a graph in the lab report. Back in those days I always just looked at the numbers to see what what was happening. It wasn’t until I worked on much more complex real world problems that I admitted graphing the data can help. Graphing data lets my mind understand what is happening much faster/better the raw numbers. Since my ultimate goal is a flying vehicle I knew I’d need an inertia measurement unit (IMU). With all the hardware figured out I already knew that taking this many inputs into a project and expecting it to do what I want was not going to happen on my first try. I used the open source Arduino SDK to compile the code for my microcontroller. The graphing was done with the open source Processing language. Here’s a movie of me shaking the sensors in a few different directions and you can see the graphs react accordingly. Permalink

Un client SSH en HTML5 « Korben Korben Si vous souhaitez mettre en place un accès SSH pour vos clients ou amis et que vous voulez ça simple pour eux, arrêtez de les embêter et mettez en place directement un terminal / client ssh en HTML5 directement sur votre serveur. Cela s'appelle Gate One, c'est en Python côté serveur, et ça vous donnera accès à la même chose que n'importe quel terminal / client SSH, dans le navigateur et sans plugin (java ou autre). Cet outil est en autres choses, multi-session, sait reprendre des sessions, supporte le copier-coller, peut être intégré à n'importe quelle page, gère les bookmarks et est même capable d'enregistrer le déroulement d'une session pour la rejouer plus tard. Le look de Gate One est configurable en CSS et vous pouvez lui adjoindre vos propres plugins. Enfin, cerise sur le gâteau, l'outil est open source. À noter qu'il est gratuit pour un usage personnel, mais payant si vous vous en servez commercialement. Plus d'infos sur GateOne ici. Merci à Arthur pour l'info.

scateu/TL-WR703N How to share data of temperatura from DHT22 over the Internet with Xively The web has definitely changed many things, such as the availability of data on request, quickly and easily. For example, to know the temperature that's out there, is readily available through various websites devoted, which also provide forecasts in the short and long term. For those who want to make a solution if, in style "Internet of things", as you can do it in the easiest way possible? The answer is Arduino + DHT22 + Xively! Arduino, a microcontroller is really great because it is simple to use and, through the various transducers exist, you can create projects that truly complete. The DHT22 is a temperature transducer, able to read the temperature and the humidity present and "communicate" to Arduino, so electric. Requirements of the project Hardware Components 1 x Arduino Uno 1 x DHT22 1 x 4.7 Kohm resistor 1 x Ethernet Shield 4 x Flexible cables Software Components

MotionGuideAlphabeticalOptionReferenceManual area_detect Type: String Range / Valid values: 1 - 999999999 Default: Not defined Option Topic Detect motion center in predefined areas. A script (on_area_detected) is started immediately when motion center is detected in one of the given areas, but only once during an event even if there is motion in a different configured area. Areas are numbered like that: One or more areas can be specified with this option. Example: You want to monitor if the center of motion occurrs in the lower third of the image - that is area 7, 8 and 9. auto_brightness Type: Boolean Range / Valid values: on, off Default: off Option Topic Let motion regulate the brightness of a video device. brightness Type: Integer Range / Valid values: 0 - 255 Default: 0 (disabled) Option Topic The brightness level for the video device. contrast Type: Boolean Range / Valid values: 0 - 255 Default: 0 (disabled) Option Topic The contrast level for the video device. control_authentication control_html_output gap

TP-Link TL-WR703N Clones Known clones of this device: Mercury MW151RM and the FAST FW171-3G. Supported Versions Unlike many newer TP-Link devices, there appears to be no hardware differences between the version for the Chinese market and the version for the international market. It was the first device that utilized the AR9331 chipset to be ported to OpenWrt. Features Atheros AR7240 CPU (400Mhz) Atheros AR9331 Chipset (integrated wireless) 802.11 b/g/n 150Mbps (130Mbps real) wireless power output 20dBm - 100mW USB 2.0 port (High-Speed only, use an external High-Speed hub for Full/Low-Speed devices) Powered via micro-USB socket Tiny form factor: 5.7cm x 5.7cm x 1.8cm Installation Please see generic.flashing for a generic description of the OpenWrt installation process. Warnings / Gotchas Please check the firmware version first, either: WARNING If you have a V1.7 firmware, current OpenWrt trunk (r36641) will brick your router, unless you have access to the serial console! Power consumption Serial console Flashing GPIOs

Visualise microcontroller data with Megunolink Pro Introduction When the time comes to capture data from a microcontroller-based project, or control an embedded project via a PC – the thought of writing the appropriate PC software can give some people a headache. Or if you’re an Arduino or other development board user and are frustrated with the Serial Monitor box – where do you go? From the Megunolink website, MegunoLink Pro is a tool designed to aid embedded electronics designers. Phil from Megunolink gives us a quick demonstration in the following video: Installation Getting Megunolink running takes around ten minutes. Operation Using Megunolink is quite simple, even though there’s a whole pile of functions. Furthermore there is an “upload monitor” in Megunolink – which can automatically disconnect from the COM: port used by an Arduino when you need to upload a new sketch, then reconnect afterward. An example Arduino sketch is provided to demonstrate this, and it translates to other development platforms. Real-time mapping Conclusion

Related: