[Arduino] Analog Thumb Joystick

This is going to be a easy and fun one, analog joystick for Arduino. I got this one for around $6 from Adafruit. Awesome and easy to use. Essentially, this is what they use in all those consoles, PS1, PS2, PS3, PS4… Some stuffs you can make with this: robotic servo control, RC motor speed controller…

Continue reading

[Arduino] Ultrasonic Range Finder (XL-MaxSonar-EZ MB1240)

Last time I update this blog was almost a year ago… during this time, lots happened. I graduated from Lehigh University with a MechE degree, got 3 job offers. Got to choose 1, which is such a painful decision, but that will be for a later time. Long story short, I am back to Lehigh for a Master’s degree. For my thesis, I am building a “Guidance, Navigation and Control System for a Simulated Hopper Spacecraft”. Basically, building a tricopter / quadcopter to simulate the space hopper concept for space exploration. So I guess I will use this as my notebook again to document some work I’ve done, hopefully it will be easier when it’s time to write the paper.

So, ultrasonic sensor. A more expensive one, XL-MaxSonar.

Continue reading

[Arduino Project] Analog Digital Reader

This is a simple project that I did with the LCD Shield to learn how to use it. Basically, you can use the buttons to scroll through the different pins and control the lcd display back light. Basically, this is a mini voltmeter. Good for testing out raw sensor readings.

Source Code as Follow:

Continue reading

[Arduino] Arduino to Arduino Serial Communication

In this post, we will explore an easy method for transferring data from one Arduino board to another using Bill Porter’s EasyTransfer Library. Here’s a traditional method on how you hook up Arduino’s serial ports. TX to RX, RX to TX, Ground to Ground. TX is the transfer pin and RX is the receiver pin, therefore you connect the one to the other. Finally, in order for the two device to communicate with each other, the two boards must have a common ground. Here’s the wiring I drew using Fritzing, I figured it’s probably time to be neater in describing how to hook stuffs up, lol.

Library Download Link:

Continue reading

[Arduino] DFRobot LCD Keypad Shield DFR0009

Time to open up the new toys I got from China, DFRobot LCD Keypad Shield (DFR0009)! As I said, I ordered this from China’s ebay equivalent, Taobao.com, got this for 30 RMB ($5 USD), pretty cheap for a LCD display panel, let alone this is a shield with keypad! In the US, it is being sold for $15!!! Anyway, the link is follow if anyone is interested. Maybe I will do a post about ordering stuffs directly from China. I spent like $50 total and stocked up my electronic inventory with all kinda of new shields, joysticks…


Continue reading

[Arduino] L298 Dual H-Bridge Motor Driver

My first contact with robotics is probably the Lego Mindstorm kit that I have played with at a 2004 Youth IT Camp at Chinese University of Hong Kong and Hong Kong University of Science and Technology, which later, my mother bought my brother and I a set to play with back home. Now that I got into Arduino a bit, maybe it’s time to see if I can take up my robotic skills up a level. So I decided to build a basic robotic car, dual motor, to learn how to use the L298 Dual H-Bridge Motor Driver.

Continue reading

[Engineering] Arduino to Java Serial Communication 2

In this post, I will talk about using Java as a client and Arduino as a server. To keep it simple, we will only use the Arduino’s built-in LED 13. Before proceeding, please read my other post about Arduino to Java Communication through Serial Port if you haven’t already.

In summary, the only differences in the Java’s side is that we will use jSSC’s serial write method instead of serial read as follows:


Continue reading