Showing posts with label arduino. Show all posts
Showing posts with label arduino. Show all posts

Thursday, August 08, 2024

I Have Lost Track With Arduino

I Have Lost Track With Arduino

My friend bought a ESP32 microcontroller board for MYR10 from Shopee. ESP32 microcontroller is a dirt cheap controller from the Shanghai company Espressif.

Users choose ESP32 for its low price, good support (especially software) and with Wifi (and bluetooth).

There are many versions of ESP32, like C3, C6 etc. The one that I am most interested in is ESP32-S2. This is a microcontroller with a duo core, but in most cases, you don't need a duo core or are unable to use the duo core.

Even Arduino has a board with ESP32-S2, Arduino nano ESP32. This board came with 16Mb storage, did I read it clearly? Most arduino boards came with a few hundred kilobytes. With Arduino support, you can program with micropython as well. For those who are willing to spend a little more, consider this board for a start.

Thursday, March 27, 2014

WebCamp KL Internet of Things

WebCamp KL is LVL KL now
WebCamp KL changed it's name to LVL KL (Level up KL?), each speakers has 18 minutes to talk.

The kickstart for 2014 event is on 27 Mar, Internet of Things (IoT). The speakers are Ikhwan, Mike Smith, Swee Meng, Calvin Tee, Chern Shue and Sathyvelu K.

Below is my version of the summary. I pick up those content that I like, and add-on a little bit.

What is the Internet of Things (IoT)?
Connect all devices, other than PC and mobiles to the Internet. Common examples are TV, refrigerator, less common example is temperature sensor to report temperature to the internet.

Ikhwan shares what he saw at Mobile World Congress 2014. The use of NFC, sensors used in cars, and android wear.

How can we build our own IoT?
Swee Meng brief on the hardware available like Arduino, Raspberry Pi, BeagleBone etc. Calvin Tee shows a live demo on remote control the room lighting through network. The lighting device is build with Tiny85 chips (which cost $2 USD only), can be programmed with Arduino software.

What is Arduino?
Arduino is a low power microcontroller, it connect to sensors, can be easily programmed by Arduino Software. Arduino is open-source platform, the hardware circuit design is freely available. It means anyone can use the design and manufacture their own arduino.

Use Arduino to build Segway


Arduino vs Raspberry Pi
Raspberry Pi is a low cost credit card size PC board. It doesn't have hard disk, but use SD card as external storage for OS system and data. Raspberry Pi can be used as a microcontroller like Arduino, to connect sensors, but many people use it as a PC eg. make it into a media streaming box.

The different for me is, Arduino is much simpler, but it is slightly more expensive than Raspberry Pi. For Arduino UNO, the cheapest you can get is about USD29, but it doesn't come with ethernet port. Raspberry Pi price is USD25 for version A, USD35 for version B.

BeagleBone Black vs Raspberry Pi
BeagleBone is a low cost, credit card size pc board like Raspberry Pi, BeagleBone Black price is close to Raspberry Pi (still a little bit higher). BeagleBone is open hardware, but Raspberry Pi is not.

Personally I still prefer Raspberry Pi as it has a better software support. Raspbian is a debian linux optimize for Raspberry Pi hardware.

ATtiny85
ATtiny85 microcontroller is from Atmel. You can program ATtiny85 with Arduino Software like you are programming with Arduino. ATtiny85 is very limited compare with Arduino, but very much cheaper as well. ATtiny85 is about USD $2-$3 compare with Arduino UNO cost USD29. As the lighting device shown by Calvin Tee, he just need a ATtiny85 will do.

How to shrink an Arduino project to ATtiny85? Refer here.

How IoT apply to our life?
Sathyvelu K. shows us the Nest thermostat.



Some of you might already heard of Nest, it was created by Tony Fadell, the engineer who created Apple iPod. Google acquired Nest for 2.3b USD in January 2014.

Superpedestrian
Copenhagen wheel is superpedistrian now. It is a rear bicycle wheel, it works together with your smartphone apps. It learns how you cycle, and the electric motor will kick in automatically when you cycle uphill.



I find this interesting, it doesn't change a lot to the existing system, but with little modification, it improve with today's technology. But I doubt the Copenhagen wheel can be easily installed on all bicycle.

Thermostat and bicycle is not that common in Malaysia here, and people already done it. What else we can do here?

Home appliance
Chern Shu gave a good example. Many household installed with alarm system, many have auto gate as well. But the auto gate system don't talk to the alarm system.

I think you can build a "Nest" for alarm panel, or build a TV set top box as the hub of all the home appliance devices.

What was missing?
What was missing in the IoT talks? No one talks about protocol. When you connected all devices together, they need to communicate with each other. How your alarm controller knows the auto gate has open for more than 5 minutes? You need a protocol, a protocol like MQTT-SN.

Saturday, December 18, 2010

Arduino, the open source hardware

Arduino is an open source hardware micro-controller board. The open source idea is from open source software. I know of this Arduino board first introduced by a friend from open source group.

The Arduino (website arduino.cc) board came with a 8 bit RISC micro-controller chips with build in flash memory, an usb socket to transfer program and supply the power.


You will be surprised what you can do with Arduino. There is a youtube video here showing how to use a Wii Nunchuck to control a robot.

The Arduino came with a free software kit available on Windows, Linux and Mac OS X platform. You can program the Arduino with C/C++ like language using this Arduino software kit.

The Arduino is popular because is simple, cheap, open, and yet expandable. A pre-build Arduino board cost about 20-25 Euro (about RM100 to RM150, depends on exchange rate). You can program it easily with code similar with C/C++. There are some ready made expandable module available, which turn the Arduino into a robot controller, mini game console, LED display board and many other applications.

For the software part, to program the Arduino is easy, it has 2 functions:

1. setup()
2. loop()

The setup use to initialize setting, the loop function will repeat the job or action.

There is a good hardware and software introduction at youtube here.