While using gas range, busy mom can easily forget it.
So, I made Arduino Gas range monitoring prototype.
When gas range works, Arduino flame sensor will watch on it.
- If Arduino motion sensor recognizes there is no one near, it will beep periodically.
Anytime, if Arduino gas sensor works, it will beep also.
Arduino pro board is powered from USB Type A female connector plus AC-DC adapter.
After I test this prototype in real environment, I’ll add comments.
prototype(MQ-2 Gas sensor, HC-SR501 motion sensor, SEN040129 flame sensor)
Arduino flame sensor test
I enjoy riding a bicycle in Han-gang(Han river in Seoul Korea).
When passing another bicycle, someone uses a bicycle bell or his own voice(i.e. Excuse me!). But many including me want to pass quietly. Actually it’s dangerous in narrow road.
So, I need a bicycle approach warning system. Garmin did it! but it’s aim seems to be on road.
Arduino supersonic sensor senses objects up to about 4 meters. So, I started to assemble Arduino parts.
When a bicycle approaches behind me(min 50cm ~ max 4m, towards me), Arduino passive buzzer will play some melody.
Arduino pro mini accepts 9V DC through RAW pin. Supersonic sensor’s power consumption is about 0.5A/5V, so I need to check battery capacity.
When connecting Arduino pro mini using USB-to-Serial board, program uploading failed asserting ‘skt500-getsync’ error. After searching Google, I found that when uploading begins pressing reset button on Arduino pro mini board does help.
I bought the case which has a space for 9V battery and managed to put above things in it.
Tomorrow, I’ll test whether this scenario works or not.
[19 June, 2016]
- It didn’t work. It can detect only a wall or a fence approaching.
- There are several problems.
- First, 9V battery ran short within two hours. I will change Arduino board which has microUSB port and use 5,000mA rechargeable battery pack.
- Second, a supersonic sensor covers small horizontal range as you can see in youtube video – Arduino Radar Project(https://youtu.be/kQRYIH2HwfY). So, I bought servo motor.
- Third, polling interval should be reduced(one second -> 100ms or else) because another bicycle runs faster than I thought.
[26 June, 2016]
- I added a servo motor to rotate supersonic sensor(will check another rider left behind me).
- I changed from Arduino Pro to Arduino Nano, it’s power is from external battery pack(2,200mA, 1A/5V output).
- But, supersonic sensor reported wrong distance because Nano can’t supply over 500mA. Supersonic sensor requires about 500mA, so power should be supplied directly to supersonic sensor. => 28 June, this is wrong. not 500mA but 15mA.
[06 July, 2016]
- Now I connect additional power for Servo motor. GND pin is shared with two power source.
- It works fine, but some modifications are needed.
- Based my forward direction, the device monitors between 6 and 8 o’clock direction. But rotational speed is not enough, so can’t detect fast passing rider.
- Considering power consumption and durability, non-rotational 7 or 7.5 o’clock direction of supersonic sensor will be fine.
- To avoid useless warning when driving narrow road, it will be helpful to limit left warning distance to maximum supersonic distance * 0.5(0.5 = cosine(60 degree)).
I only replaced broken LCD of my iPhone 4 with new one.
But 3G service isn’t available anymore. I’m so panic, but the following link helped me.
After soldering one point, magically there was no problem with 3G service.
AOC E1649FWU 16″ USB-Powered Portable has no HDMI connector but USB 2.0 Y type cable(one is for additional 500mA power).
Google ADT includes the missilelauncher App. source code. I connected it to my Dream Cheeky Thunder USB missile launcher. But it didn’t work.
I found interesting documents which describes the detail of USB HID requests used in Missile Launcher. http://fivedots.coe.psu.ac.th/~ad/jg/nui04/index.html
For now I couldn’t download USBTrace for finding out the details of USB HID requests. I have one but evaluation was expired long time ago. Anyway, I installed USBTrace on another computer and found that USB product id, vendor id and internal commands are changed.
You should add the below to device_filter.xml
<!– vendor and product ID for Dream Cheeky Thunder USB Missle Launcher –>
<usb-device vendor-id=”8483″ product-id=”4112″ />
In MissileLauncherActivity.java, two parts are required to change.
byte message = new byte; // changed 2 from 1
message = 0x02; // added
message = (byte)control; // moved from message
I bought some Android based tablets from China. And many of them adopts MediaTek CPU.
I made Android app. which recognizes USB attach event when my USB device is connected to a tablet. In Nexus 5 or Nexus 7 2013 recognizes USB device well. As you know, USB OTG(On The Go) is widely used.
I found that all tablets I bought didn’t recognize USB device. Of course there is no problem with a mouse or USB flash memory. But I can’t use my USB device(USB-to-RF USB stick from SiLabs).
In contrast, the tablets which adopt the Rockchip or Allwinner Boxchip work well with my USB device.
Yesterday, I rent ZTE V967S phone(MediaTek CPU) for testing USB OTG recognition. Fortunately there is no problem with it.
Screenshot is the result of running a sample code of OpenCV Python.
* Captured using ‘scrot’ program.
* How to install OpenCV : http://denis.doublebuffer.net/lablog/2012/08/10/setting-everything-up-for-opencv-raspberry-pi/