Thursday, 15 November 2012

Install Arduino Uno drivers on Windows 8

Today I had to re-install my Arduino drivers because I've installed Windows 8. This was a problem because the drivers where not correctly signed. In Windows 7 you could ignore this, but in Windows 8 you need to boot in a special mode in order to avoid the safety measures.

On the Arduino forum there is a nice how-to available about how to install the Arduino Uno drivers on Windows 8.
1. Windows Key + R
2. Enter shutdown.exe /r /o /f /t 00
3. Click the "OK" button
4. System will restart to a "Choose an option" screen
5. Select "Troubleshoot" from "Choose an option" screen
6. Select "Advanced options" from "Troubleshoot" screen
7. Select "Windows Startup Settings" from "Advanced options" screen
8. Click "Restart" button
9. System will restart to "Advanced Boot Options" screen
10. Select "Disable Driver Signature Enforcement"
11. Once the system starts, install the Arduino drivers as you would on Windows 7
source: Original post on Arduino forums by Louis Davis

JY-MCU "linvor" AT Commands (change name of linvor)

Today I found out how to change the name of my "linvor" serial Bluetooth module to my desired name.
It's quite easy, however due the different baud rates you nee to experiment a little with them in order to get a good connection. So experiment with setting the baud rate in the Arduino code.

I connected the RX pin of linvor to pin 2 and the TX pin of linvor to pin 3 of the Arduino.
Then I changed the default SoftwareSerialexample of the Arduino IDE a little. Now the Serial.begin(rate); is set to 9600: Serial.begin(9600); which is the baud rate of the linvor.

/*
  Software serial multple serial test
 
 Receives from the hardware serial, sends to software serial.
 Receives from software serial, sends to hardware serial.
 
 The circuit: 
 * RX is digital pin 2 (connect to TX of other device)
 * TX is digital pin 3 (connect to RX of other device)
 
 created back in the mists of time
 modified 9 Apr 2012
 by Tom Igoe
 based on Mikal Hart's example
 
 This example code is in the public domain.
 
 */
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

void setup()  
{
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  
  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
  mySerial.println("Hello, world?");
}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}



Open your serial monitor and if everyting is correctly set up you should see: "Goodnight moon!"
If you receive weird symbols your baud rate is wrong.
After that send: "AT". It should send OK back.
Now you're able to configure the linvor. Send one command at a time.

List of available ATcommands:
Command
Description
Options
Response
AT+VERSION
Returns the software version of the module

OKlinvorV1.x
AT+BAUDx
Sets the baud rate of the module 
The command AT+BAUD8 sets the 
baud rate to 115200
1 >> 1200 
2 >> 2400 
3 >> 4800 
4 >> 9600 (Default) 
5 >> 19200 
6 >> 38400 
7 >> 57600 
8 >> 115200 
9 >> 230400
OK115200
AT+NAMEOpenPilot
Sets the name of the module
Any name can be specified up to 20 characters
OKsetname
AT+PINxxxx
Sets the pairing password of the device
Any 4 digit number can be used, the default 
pincode is 1234
OKsetPIN
AT+PN
Sets the parity of the module
AT+PN >> No parity check
OK None
source:http://wiki.openpilot.org/display/Doc/Serial+Bluetooth+Telemetry

Monday, 12 November 2012

Free available tutorials related programming and computer programs

Hey there! Since about a year I'm busy with learning various computer programming skills. Currently I'm busy with the languages HTML, CSS and Javascript. Last semester I worked with Java/Android for an assignment at university.

For this I used video tutorials. Which work for me sometimes better than books. Before I started with Java programming, I searched for a source which offers free available video tutorials with good quality. I found several websites, but one site was for me the best. It's the website from Bucky Roberts: thenewboston.org.

What I really like about his tutorials is that he tries sometimes to make a joke in between the serious stuff. In this way even the boring parts of the tutorial become a little more interesting. Maybe you should just view a few video's of the subject you want to learn to try if his tutorials also work for you.

Currently he offers tutorials in various subjects. Some subjects are more explicit reviewed that others, but most tutorials are good enough to make a good start in the subject which you want to explore. As you can see in the list below he also offers some other subjects which you would not expect.

List of available subjects at this moment:

   Adobe:


   Computer programming:

Saturday, 3 November 2012

Windows 8 Gestures and Keyboard shortcuts

Since the upgraded to Windows 8 Pro, I never used the touchpad of my Asus K53SJ at all. Until today and I missed the gestures which are present on many Windows 8 laptops.

That's why I started my search for the right drivers. Asus provides some drivers, but they only make the touchpad work for basic use.

If you want to make the Windows 8 touch-pad gestures work on your Elantech equipped notebook you have to install the latest drivers from this page. At this moment they are more recent and extensive than the drivers provided by Asus.

After the installation and the required reboot your mouse properties should show a Elan tab and the installed Elan PS/2 device in your mouse properties window.

Optionally you could also download the latest ATK package for Windows 8. It makes your keyboard (Fn) shortcuts work in Windows 8 style. This means you don't get those fancy pictures from Asus when you control for instance your volume, but the nice Windows 8 styled volume bar. 



Monday, 29 October 2012

Windows 8 Media Center for FREE!


At this moment I'm considering an upgrade to Windows 8. It will cost me €29.99 for Windows 8 Pro, but I'm mainly concerned about how well the upgrade process works. I've noticed that the Windows 8 Media Center Plugin is for a temporary time free available, so I already filled in the form. You can do this too. The only thing you have to do is to enter your email-adress on this web page in order to receive the product key within 24 hours.



Thursday, 25 October 2012

Installing and testing the JY-MCU BT chip (Arduino/Windows)

Today I started with connecting my JY-MCU Bluetooth chip to my Arduino UNO.
You can order these chips really cheap at ebay or DX.com.

I've bought mine at DX.com for only $8.60. They offer a serial Bluetooth (BT) connection within a small range. This is mostly enough for our basic connectivity projects.
Link to DX.com

Connecting to the Arduino and uploading the test sketch:

As you can see it offers limited pins: VCC, GND, TXD and RXD.

If you want to connect it to an Arduino you can do it like this:

5v Arduino -> VCC
GND Arduino-> GND
TX(1) Arduino -> RXD
RX(0) Arduino -> TXD




If you want to test the Bluetooth chip, you can upload this sketch to your Arduino:

char val; // variable to receive data from the serial port
int ledpin = 13; // Onboard LED

void setup() {

  pinMode(ledpin, OUTPUT);  // Onboard LED as OUTPUT
  Serial.begin(9600);       // start serial communication at 9600bps
}

void loop() {

  if( Serial.available() )       // if data is available to read
  {
    val = Serial.read();         // read it and store it in 'val'
  }
  if( val == 'H' )               // if 'H' was received
  {
    digitalWrite(ledpin, HIGH);  // turn ON the LED
  } else { 
    digitalWrite(ledpin, LOW);   // otherwise turn it OFF
  }
  delay(100);                    // wait 100ms for next reading
}


It's inspired on the blog from roboToSH, but with a small change.
It will trigger LED pin 13 to high when you send the character "H" with use of the serial line. If you use another character or value it will turn off.

Pair the BT chip with your PC:

For pairing your JY-MCU to your PC you need to have a Bluetooth USB stick or an embedded BT chip in your laptop or desktop to set up a connection. Pairing is pretty simple in Windows. Just enter the window of the Bluetooth devices and search for a new device. You can enter this Window by clicking the BT logo in your taskbar.


Note: If you're having problems with trying the following up solution. Scroll down and try the different solution! It seems that Windows sometimes has problems with pairing and setting up a com port. Before you start with the different solution you have to remove the existing "linvor"device from the system by right clicking the device.

If it works well you can now find the BT device "linvor". Click on this device and use the code 1234 to get access. Now you can find "linvor" in the devices window.



Testing the BT serial connection:

Testing the BT serial connection is very simple once you paired with "linvor". You can find out the right COM port when you right-click the "linvor" device in the window. Go to properties and search for the COM port number in the hardware tab.

Once you know the COM port number you have to start the Arduino IDE. After that you select the right COM port and you enter the serial monitor. Enter H in the command line. If everything works well you can see the LED near the "L" character on your Arduino turn on.

If the Arduino IDE is not able to find the right COM port you can follow solution 2 in order to set up the connection correctly or you can try to use PuTTY for the serial view. (See solution 2)



Solution 2:

In my case the first solution worked for about 20 seconds. After that the Arduino IDE finds only the wrong serial port and the connection becomes unstable. I think this has something to do with the way how Windows organizes setting up different serial ports. I invested over 5 hours to find this solution, that's why I want to share it with you. :)

First steps:
Hook up your Arduino like in the first solution. Upload the sketch and go to the add bluetooth device screen of windows.

Pairing:
Pairing is different in this solution. You have to pair without telling the password!

Okay, now is your device paired without the code. Good job! 

Viewing the serial monitor:
Even in this way it's still impossible to use the Arduino Serial Monitor. In this case you should try Putty. It was the only free program that did the job correctly for me.


You can download Putty here if you didn't already have it on your computer:

Now it's time to start Putty. You will get a login screen.

  • Select serial, enter the right COM port. (You can find it in the hardware tab of the properties of "linvor" in the device window of Windows)
  • Set the Boud rate to 115200
  • Click Open

If it works correctly a balloon in the corner of your screen will pop up and ask for the code that you didn't enter when pairing. Enter "1234". 

After this the "Putty terminal" will pop-up and you're able to send in commands. Press "H". You won't see anything happening on the screen. But the light of your UNO will turn on. If you press "L" the light will turn off.

Note:
  • Putty is also able to receive values like for instance from a sensor. You will see them correctly. Because the Putty terminal only displays what you get back over serial and not what you send. If you need to send a big message to the Arduino. Copy/paste it in the window.
  • In case of a connection your "linvor" LED will become a solid red colour, if there is no connection it will blink.