Arduino Engineering

Arduino

So the perfect evolution from mobile device programming is arduino/microcontroller programming. It’s basically moving from controlling software to controlling hardware.  Ever feel like coding apps is cool but you wish they could actually move things? I started off with a basic arduino kit with motors and leds. Of course I started out with the: – LED blink (on-board) – LED blink with breadboard I went a little crazy and my head overflowed with ideas for projects.  I even made Arduino Pancakes!  Very tough btw.   Pretty soon I was getting shields and sensors, motors, displays and a soldering iron. I quickly moved onto: – LCD display – DC motor –… Read More

Continue Reading

First Android App – Part 6

My First Android App Now we are going to receive the input of this message and use the button to send it. To do so, edit your Button declaration to look like this: <Button android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”@string/button_send” android:onClick=”sendMessage” /> We are simply telling it to respond to the onClick button action by calling the sendMessage method. So we must declare this method in code, of course.  Open your MainActivity.java file and add the following: /** Called when the user clicks the Send button */ public void sendMessage(View view) { // Do something in response to button } We are declaring a public method that returns void, is called sendMessage and… Read More

Continue Reading