OpenWrt: Control LED manually
Due to the limited GPIO availability on the wireless router, you may want use the router LED pin to provides a few more GPIOs. This describes how to use the LED pin on a wireless router as binary outputs.
Wi-Fi controlled Remote Control Car without microcontroller
This is a Wi-Fi controlled remote control car with camera that can be driven over the internet. The RC car is very unique since it's using a wireless router and eliminate the need of a microcontroller.
Lua_2W_Motor: 2 wheel motor library for Lua running on wireless router
This is a motor library for Lua running on wireless router which flashed with OpenWrt firmware. It allows a wireless router control the motors without using micro-controller. This library works on any dual-full-bridge driver such as L298.
Each motor require two GPIOs for controlling, therefore 2 motors will use up 4 GPIOs. Most of the wireless router may not have enough GPIO to control the motors, but you can use other pin on the router such as the LED pin, this require to unload the leds_gpio module.
Compiling OpenWrt from source
To compile OpenWrt from source, you need a computer running Linux such as Ubuntu. If you are like me and don't have a Linux computer, you can still use your Windows computer to compile OpenWrt.
In order to run Linux on a Windows, you must install virtual machine on you computer. Virtual machines allow you to run any operating system in a window on your desktop, I'm using the free VirtualBox for my case, please read here for details.
Lua_ShiftOut: A 74HC595 Shift Register Library for Lua
I want to built a wifi car without using micro contoller, due to the limited GPIO availability on the wireless router, a 74HC595 Shift Register is needed to expand its outputs.
This is a 74HC595 Shift Register library for Lua running on wireless router flashed with OpenWRT, it may run in any linux-based embedded system. It can be used to shift out data from either the most (i.e. the leftmost) or least (rightmost) significant bit.
Lua_GPIO: GPIO Read/Write Functions for Lua
This is a very simple GPIO read/write functions for Lua running on linux-based embedded system, it is based on Arduino digital input/output syntax.
Only four functions are available: pinMode, digitalWrite, digitalRead & delay
Update: Added pin_direction_status() function on 16 Oct 2015
Setting up 3G network on Openwrt Barrier Breaker
Insert 3G dongle and restart router.
Append to following line to /etc/config/network configuration file. Here is the settings for setup Maxis 3G network.
config interface 'wan'
Restart the router.
Ubidots-Lua: OpenWRT router + Ubidots = Real-time data monitoring
In my projects I needed a tool to monitor data in real time, the data is captured by a microcontroller and uploaded to the web using a wireless router. Initially I was trying to use yeelink since it is in chinese langguage and yet I'm a Malaysian Chinese.
One month ago, I have tried with Ubidots, there were a few things that caught my eye.
BASH Dropbox Uploader on OpenWRT
This guide is to provide detailed information on how install BASH Dropbox Uploader to a wireless router flashed with OpenWRT. Dropbox Uploader is a BASH script written by Andred Fabriz that allows you to upload, download, delete files (and more) from Dropbox.