Friday, September 13, 2019
Wednesday, August 28, 2019
Saturday, August 24, 2019
Long Range Radio
Lelong HC-12
https://www.lelong.com.my/hc-12-si4463-wireless-mcu-serial-port-module-w-spring-antenna-blue-sgrobot-195451458-2020-08-Sale-P.htm
Arduino and HC-12
https://www.youtube.com/watch?v=vqRqtgvltOI
https://www.lelong.com.my/hc-12-si4463-wireless-mcu-serial-port-module-w-spring-antenna-blue-sgrobot-195451458-2020-08-Sale-P.htm
Arduino and HC-12
https://www.youtube.com/watch?v=vqRqtgvltOI
Tuesday, August 20, 2019
Penang Smart Parking Project
Penang Smartparking project fails:
https://www.malaymail.com/news/malaysia/2019/08/20/penangs-rm115m-smart-parking-system-hits-snag-contractor-told-to-show-cause/1782368
https://www.malaysiakini.com/news/488714
The sensors:
http://www.turboes.com/en/h-col-123.html
http://www.reallin.com/iot-technology/iot-device/magnetism-detector-with-lora-technology.html
https://www.thethingsnetwork.org/marketplace/product/tbs-200
The IOT technology:
https://www.youtube.com/watch?v=6WMzRrmMjQU
My initial impression:
It uses proprietary devices and proprietary standards. Needs to lay down its own LoraWAN network for the TBS-200 sensors to connect. Uses its own proprietary long range radio networks. Uses apps for mobile phones. Google Play has apparently rejected the app. Only iOS is available. That all adds up to the high implementation costs of RM115 million.
Should use:
Internet which is already available and wifi hotspots for long range communication. Also, should build mobile phone browser apps - to avoid the hassle of getting Google and Apple's approval.
https://www.malaymail.com/news/malaysia/2019/08/20/penangs-rm115m-smart-parking-system-hits-snag-contractor-told-to-show-cause/1782368
https://www.malaysiakini.com/news/488714
The sensors:
http://www.turboes.com/en/h-col-123.html
http://www.reallin.com/iot-technology/iot-device/magnetism-detector-with-lora-technology.html
https://www.thethingsnetwork.org/marketplace/product/tbs-200
The IOT technology:
https://www.youtube.com/watch?v=6WMzRrmMjQU
My initial impression:
It uses proprietary devices and proprietary standards. Needs to lay down its own LoraWAN network for the TBS-200 sensors to connect. Uses its own proprietary long range radio networks. Uses apps for mobile phones. Google Play has apparently rejected the app. Only iOS is available. That all adds up to the high implementation costs of RM115 million.
Should use:
Internet which is already available and wifi hotspots for long range communication. Also, should build mobile phone browser apps - to avoid the hassle of getting Google and Apple's approval.
Saturday, August 17, 2019
L298N Motor Driver
How to test it:
https://www.youtube.com/watch?v=_TEZ2-3H0GY
How to use it:
https://www.teachmemicro.com/use-l298n-motor-driver/
How to set speed:
https://randomnerdtutorials.com/esp32-dc-motor-l298n-motor-driver-control-speed-direction/
https://www.youtube.com/watch?v=_TEZ2-3H0GY
How to use it:
https://www.teachmemicro.com/use-l298n-motor-driver/
How to set speed:
https://randomnerdtutorials.com/esp32-dc-motor-l298n-motor-driver-control-speed-direction/
Friday, August 16, 2019
P2P Wifi Direct
Wifi Direct:
https://www.reddit.com/r/esp8266/comments/agy4nt/wifi_direct_and_esp8266/
https://github.com/paulchin/esp8266-wifi-direct-examples
How to server webpage:
https://randomnerdtutorials.com/esp8266-web-server/
References:
A Beginner's Guide to NodeMCU:
https://tttapa.github.io/ESP8266/Chap01%20-%20ESP8266.html
Official NodeMCU documentation:
https://nodemcu.readthedocs.io/en/master/modules/wifi/
How to set static IP for NodeMCU Server:
http://onlineshouter.com/use-esp8266-wifi-modes-station-access-point/
https://www.reddit.com/r/esp8266/comments/agy4nt/wifi_direct_and_esp8266/
https://github.com/paulchin/esp8266-wifi-direct-examples
How to server webpage:
https://randomnerdtutorials.com/esp8266-web-server/
References:
A Beginner's Guide to NodeMCU:
https://tttapa.github.io/ESP8266/Chap01%20-%20ESP8266.html
Official NodeMCU documentation:
https://nodemcu.readthedocs.io/en/master/modules/wifi/
How to set static IP for NodeMCU Server:
http://onlineshouter.com/use-esp8266-wifi-modes-station-access-point/
Monday, August 5, 2019
Camera projects
Visual Capturing with OV7670 on Arduino :
https://create.arduino.cc/projecthub/techmirtz/visual-capturing-with-ov7670-on-arduino-069ebb
Lelong STElectronics : Arduino OV7670 VGA Camera Module
Cytron:
Instructables:
https://www.instructables.com/id/OV7670-Without-FIFO-Very-Simple-Framecapture-With-/
ESP-32
https://www.youtube.com/watch?v=U5uvl6kDFJY
Nodemcu with ESP32-cam:
https://www.youtube.com/watch?v=FkTg-Nm2LQc [ building the car ]
https://www.youtube.com/watch?v=HedMwVT6J3M [ adding the ESP-32 cam ]
https://blog.naver.com/renucs/221440067950 [ building the car ]
https://blog.naver.com/renucs/221393078919 [ adding the ESP-32 cam ]
https://www.lelong.com.my/esp32-cam-wifi-bluetooth-development-board-ov2640-camera-module-sgrobot-208732495-2020-10-Sale-P.htm [ SGrobot selling ]
USB connect to ESP32-Cam
https://www.youtube.com/watch?v=U5uvl6kDFJY
https://www.lelong.com.my/cp2102-usb-2-0-to-ttl-uart-module-serial-converter-stelectronics-214438917-2020-08-Sale-P.htm [ Lelong selling CP2102 ]
ESP32-Cam surveillance camera project
https://www.youtube.com/watch?v=36p9To2hfak
ESP-32
https://www.youtube.com/watch?v=U5uvl6kDFJY
Nodemcu with ESP32-cam:
https://www.youtube.com/watch?v=FkTg-Nm2LQc [ building the car ]
https://www.youtube.com/watch?v=HedMwVT6J3M [ adding the ESP-32 cam ]
https://blog.naver.com/renucs/221440067950 [ building the car ]
https://blog.naver.com/renucs/221393078919 [ adding the ESP-32 cam ]
https://www.lelong.com.my/esp32-cam-wifi-bluetooth-development-board-ov2640-camera-module-sgrobot-208732495-2020-10-Sale-P.htm [ SGrobot selling ]
USB connect to ESP32-Cam
https://www.youtube.com/watch?v=U5uvl6kDFJY
https://www.lelong.com.my/cp2102-usb-2-0-to-ttl-uart-module-serial-converter-stelectronics-214438917-2020-08-Sale-P.htm [ Lelong selling CP2102 ]
ESP32-Cam surveillance camera project
https://www.youtube.com/watch?v=36p9To2hfak
Sunday, August 4, 2019
(HY000/1130): Host 'localhost' is not allowed to connect to this MariaDB server
When phpmyadmin cannot connect:
How to fix:
https://www.youtube.com/watch?v=NSX-ib2aMDQ
edit file:
C:\xampp\mysql\bin\my.ini
by adding:
skip-grant-tables
to [ mysqld ] as follows:
# The MySQL server
[mysqld]
skip-grant-tables
port= 3306
socket = "C:/xampp/mysql/mysql.sock"
basedir = "C:/xampp/mysql
How to fix:
https://www.youtube.com/watch?v=NSX-ib2aMDQ
edit file:
C:\xampp\mysql\bin\my.ini
by adding:
skip-grant-tables
to [ mysqld ] as follows:
# The MySQL server
[mysqld]
skip-grant-tables
port= 3306
socket = "C:/xampp/mysql/mysql.sock"
basedir = "C:/xampp/mysql
Saturday, August 3, 2019
Robotics
Main:
https://www.instructables.com/id/NodeMCU-ESP8266-WiFi-Robot-Car-Controlled-by-Appli/
https://www.youtube.com/watch?v=2AL7HfiRlp4
Chassis:
[ 2 layer ]
https://www.lelong.com.my/arduino-2wd-2-layer-smart-sumo-caster-robot-car-chassis-kit-sgrobot-195453283-2020-08-Sale-P.htm
[ 1 layer ]
https://www.lelong.com.my/arduino-2wd-150mm-mini-smart-robotics-car-6v-dc-motor-chassis-kit-set-sgrobot-198538063-2020-11-Sale-P.htm
H-bridge:
https://www.lazada.com.my/products/arduino-l298n-dc-motor-driver-dual-h-bridge-for-smart-car-i157423490-s186683344.html?spm=a2o4k.searchlist.list.2.3eb572a9H8dHDL&search=1
Others:
Using Blynk:
https://www.hackster.io/andrewf1/simplest-wifi-car-using-esp8266-motorshield-37501e
Smartphone controlled Robot using NODEMCU - esp8266:
https://www.youtube.com/watch?v=WITD_wsRcxo
NodeMCU robotic shield:
https://www.lelong.com.my/nodemcu-lua-esp8266-wifi-l293d-motor-driver-expansion-shield-board-sgrobot-197132610-2020-10-Sale-P.htm
Udemy:
https://www.udemy.com/course/esp12e-nodemcu-spy-iot-robot-using-blynk/
IP Webcam
https://play.google.com/store/apps/details?id=com.pas.webcam
AZ Screen Recorder
https://play.google.com/store/apps/details?id=com.hecorat.screenrecorder.free
How to assemble: 2WD 2 Layer Smart Sumo Caster Round Robot Car Chassis Kit
https://www.youtube.com/watch?v=8GyWYu6kYKM
Tuesday, July 30, 2019
Parking Project: Using multiple analog sensors
Instructables:
https://www.instructables.com/id/ESP8266-with-Multiple-Analog-Sensors/
Circuit: https://crcit.net/c/8f90e6a2
Code:
https://snipit.io/lists/5265/16084
See file: 14-sendata-mux
Browser tests:
http://localhost/parking/setdata.php?a=1&b=1&c=1&d=1&e=1&f=1&g=1&h=1
http://localhost/parking/index.php
http://localhost/parking/setcmd.php?cmd=0
http://localhost/parking/getdata.php
Using CD4051:
https://www.lelong.com.my/cd-4051-stelectronics-210206620-2020-12-Sale-P.htm
http://synacorp.my/v3/en/
https://www.instructables.com/id/ESP8266-with-Multiple-Analog-Sensors/
Circuit: https://crcit.net/c/8f90e6a2
Database:
Code:
https://snipit.io/lists/5265/16084
See file: 14-sendata-mux
Browser tests:
http://localhost/parking/setdata.php?a=1&b=1&c=1&d=1&e=1&f=1&g=1&h=1
http://localhost/parking/index.php
http://localhost/parking/setcmd.php?cmd=0
http://localhost/parking/getdata.php
Using CD4051:
https://www.lelong.com.my/cd-4051-stelectronics-210206620-2020-12-Sale-P.htm
http://synacorp.my/v3/en/
Monday, July 29, 2019
Blynk Server Auth Tokens
Public blynk server:
tMZ6z5ihx-Eujz_Lnxcsjnh64hJuaY z6
Private blynk server:
c1viXI8rK9CpPoRLG3nJVJn1rNcYit 4T
tMZ6z5ihx-Eujz_Lnxcsjnh64hJuaY
Private blynk server:
c1viXI8rK9CpPoRLG3nJVJn1rNcYit
Hosting your own Blynk Server
Reference:
https://www.youtube.com/watch?v=33ynNkvfvWU
http://docs.blynk.cc/
Download:
https://github.com/blynkkk/blynk-server#blynk-server
Direct download:
https://github.com/blynkkk/blynk-server/releases
Run:
java -jar server-0.41.8-java8.jar -dataFolder server_data
https://www.youtube.com/watch?v=33ynNkvfvWU
http://docs.blynk.cc/
Download:
https://github.com/blynkkk/blynk-server#blynk-server
Direct download:
https://github.com/blynkkk/blynk-server/releases
Run:
java -jar server-0.41.8-java8.jar -dataFolder server_data
Sunday, July 28, 2019
Getting started with Blynk
How to install Blynk Library for Arduino
http://help.blynk.cc/en/articles/512105-how-to-install-blynk-library-for-arduino
http://help.blynk.cc/en/articles/512105-how-to-install-blynk-library-for-arduino
Friday, July 26, 2019
Udemy: Project 8 - Read Light Sensor
Description:
Reads light intensity from LDR and maps it to a range from 0 - 100
Parts:
1. NodeMCU x 1
2. LDR Sensor
3. Jumper wires x 3 (male to male)
4. Breadboard
https://crcit.net/c/bac8809c
Reads light intensity from LDR and maps it to a range from 0 - 100
Parts:
1. NodeMCU x 1
2. LDR Sensor
3. Jumper wires x 3 (male to male)
4. Breadboard
https://crcit.net/c/bac8809c
Code:
Thursday, July 25, 2019
Udemy: Project 7 - Read Light Sensor Module
Description:
Reads light intensity. If it exceeds certain threshold, it displays 0, if there is no light, it displays 1 to Serial Monitor.
Parts:
1. NodeMCU x 1
2. LDR Sensor Module
3. Jumper wires x 3 (male to male)
4. Breadboard
Code:
https://snipit.io/lists/5265/15758
Ref:
Using Digital Pin:
https://tutorial.cytron.io/2017/07/10/getting-started-light-sensor-module-sn-light-mod/
Using Analog Pin:
https://www.instructables.com/id/LDR-Sensor-Module-Users-Manual-V10/
Reads light intensity. If it exceeds certain threshold, it displays 0, if there is no light, it displays 1 to Serial Monitor.
Parts:
1. NodeMCU x 1
2. LDR Sensor Module
3. Jumper wires x 3 (male to male)
4. Breadboard
Code:
https://snipit.io/lists/5265/15758
Ref:
Using Digital Pin:
https://tutorial.cytron.io/2017/07/10/getting-started-light-sensor-module-sn-light-mod/
Using Analog Pin:
https://www.instructables.com/id/LDR-Sensor-Module-Users-Manual-V10/
Tuesday, July 23, 2019
Udemy: Project 6 - Analog Read
Description:
This example shows you how to read analog input from the physical world using a potentiometer. A potentiometer is a simple mechanical device that provides a varying amount of resistance when its shaft is turned. By passing voltage through a potentiometer and into an analog input on your board, it is possible to measure the amount of resistance produced by a potentiometer (or pot for short) as an analog value. In this example you will monitor the state of your potentiometer after establishing serial communication between your Arduino or Genuino and your computer running the Arduino Software (IDE).
Note:
You can also use Serial Plotter
Parts:
1. NodeMCU x 1
2. Potentiometer x 1
3. Jumper wires x 3 (male to male)
4. Breadboard
Circuit:
https://crcit.net/c/fe9b46ed
This example shows you how to read analog input from the physical world using a potentiometer. A potentiometer is a simple mechanical device that provides a varying amount of resistance when its shaft is turned. By passing voltage through a potentiometer and into an analog input on your board, it is possible to measure the amount of resistance produced by a potentiometer (or pot for short) as an analog value. In this example you will monitor the state of your potentiometer after establishing serial communication between your Arduino or Genuino and your computer running the Arduino Software (IDE).
Note:
You can also use Serial Plotter
Parts:
1. NodeMCU x 1
2. Potentiometer x 1
3. Jumper wires x 3 (male to male)
4. Breadboard
Circuit:
https://crcit.net/c/fe9b46ed
Code:
Udemy: Project 5 - Digital Read
Description:
Read a switch, print the state out to the Serial Monitor
Parts:
1. NodeMCU
2. 10 kOhm resistor x 1
3. push button switch x 1
4. hookup wires (female to male) x 3
5. breadboard (half-size)
Circuit: https://crcit.net/c/4de4d6d9
Read a switch, print the state out to the Serial Monitor
Parts:
1. NodeMCU
2. 10 kOhm resistor x 1
3. push button switch x 1
4. hookup wires (female to male) x 3
5. breadboard (half-size)
Circuit: https://crcit.net/c/4de4d6d9
Code:
Udemy: Project 4 - pwm fade led (Analog out)
Description: Demonstrates the use of analog output to fade an LED
Parts Required:
1. NodeMCU (1)
2. LED (1)
3. 220 ohm resistor (1)
4. jumper wire (1)
5. breadboard (1)
Circuit: https://crcit.net/c/d5f3db14
Parts Required:
1. NodeMCU (1)
2. LED (1)
3. 220 ohm resistor (1)
4. jumper wire (1)
5. breadboard (1)
Circuit: https://crcit.net/c/d5f3db14
Monday, July 22, 2019
Sunday, July 21, 2019
Udemy: Projects 1 - 3
Some are based on Arduino IDE built-in tutorials:
https://www.arduino.cc/en/Tutorial/BuiltInExamples
All code is on https://snipit.io under nodemcu list
Circuit is designed using: https://www.circuit-diagram.org/editor/
2. Blink built in LED :
Select examples, basic, blink.
Modify builtin pin to D4
Code: https://snipit.io/lists/5265/15526
Ref:
Arduino Examples, 01.Basics, Blink
https://www.arduino.cc/en/Tutorial/Blink
3. Blink external LED (Digital Out) :
Description:
Demonstrates the use of digital output to blink an LED
Select examples, basic, blink.
Modify pin to D4
Parts Required:
1. NodeMCU (1)
2. LED (1)
3. 220 ohm resistor (1)
4. jumper wire (1)
5. breadboard (1)
Circuit: https://crcit.net/c/d5f3db14
Code: https://snipit.io/lists/5265/15526
Ref:
Arduino Examples, 01.Basics, Blink
https://www.arduino.cc/en/Tutorial/Blink
UNUSED:
1. Read from Serial Monitor and control onboard LED:
Code: https://snipit.io/lists/5265/15464
2. NodeMCU Digital Output – LED Blinking (PWM)
https://roboindia.com/tutorials/digital-output-nodemcu/
https://www.arduino.cc/en/Tutorial/BuiltInExamples
All code is on https://snipit.io under nodemcu list
Circuit is designed using: https://www.circuit-diagram.org/editor/
1. Hello world Serial Monitor Output:
Select examples, basic, blink.
Modify builtin pin to D4
Code: https://snipit.io/lists/5265/15526
Ref:
Arduino Examples, 01.Basics, Blink
https://www.arduino.cc/en/Tutorial/Blink
3. Blink external LED (Digital Out) :
Description:
Demonstrates the use of digital output to blink an LED
Select examples, basic, blink.
Modify pin to D4
Parts Required:
1. NodeMCU (1)
2. LED (1)
3. 220 ohm resistor (1)
4. jumper wire (1)
5. breadboard (1)
Circuit: https://crcit.net/c/d5f3db14
Code: https://snipit.io/lists/5265/15526
Ref:
Arduino Examples, 01.Basics, Blink
https://www.arduino.cc/en/Tutorial/Blink
UNUSED:
1. Read from Serial Monitor and control onboard LED:
Code: https://snipit.io/lists/5265/15464
2. NodeMCU Digital Output – LED Blinking (PWM)
https://roboindia.com/tutorials/digital-output-nodemcu/
Subscribe to:
Posts (Atom)