Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Arduino 1.5/Due usb problems after update on: May 02, 2013, 04:06:10 am
I had to disable bluetooth to get it to work, with bluetooth on I had the same symptons as described here.

May be helps?

2  Using Arduino / Sensors / Re: Sensors to measure the step length during walking on: March 25, 2013, 08:30:13 pm
Why not use GPS and have the GPS tell you when you walked 100, 300 yards or whatever you feel gives better resolution and have the Arduino count your steps. Then a simple calculation gives you your average step size. GPS shields for Arduino are readily available.

If you use GPS, you maybe have no need for step size since you know how far you walked?

3  Using Arduino / Displays / Re: I2C 20x4 LCD not working on Mega on: January 09, 2013, 07:00:31 am
Hello Bill,

The Teensy 3.0 looks very promising, will get one or two on order to see if I can use this to make an intelligent, stand alone mixing valve controller that handles all the low level controls for the motor, drive, switches and safety components so that I can simply send high level commands to the Teensy in the valves and have the Teensy take care of all the work inside the valves. Chipkit is nice because the digital lines are 5V tolerant which makes it much easier to hook sensors and stuff like the Dallas 18B20 up to it although the Dallas works on 3V also. I tried that already and see no problems with 3.3V except the libraries are not completed yet for the Due.

Will keep you posted on progress and problems, uuhh challenges I mean.  smiley-mr-green

4  Using Arduino / Displays / Re: I2C 20x4 LCD not working on Mega on: January 09, 2013, 02:45:50 am
Hello Bill,

Got it all under control now, nice short and clean code for driving the LCD. I removed the setBackLightPin(), pinMode() and digitalWrite() and can still control the backlight with the library. I need the flashing backlight for alarm situations in this controller so it all works out OK.

These displays may not be the best you can get but they are dirt cheap. I checked the backlight and it is OK, current to the LCD is OK and I am using an external power supply for the entire controller anyway. Got 12 Dallas 18B20's hooked up, 2 brushless AC servo motors + drivers, a bunch of switches  and a couple of relays to drive large valves. Now add the display for actual process status and information and it should be complete now. Process parameters are going to a Processing sketch for graphing and datalogging. Back up on a SD card inside the controller in case the USB connection gets lost. Super cool stuff. Time for a Due, need something faster I guess but first need to get this working the way I want.

Thanks for helping me out getting the library to work!! Happy camper here, off to bed now or maybe one more coffee and some more coding....

5  Using Arduino / Displays / Re: I2C 20x4 LCD not working on Mega on: January 09, 2013, 12:32:22 am
Hello Bill,

you are absolutely spot on with your reply, the definitions are wrong. I never realized that there are different maps between different LCD manufacturers with the same translator IC. Took some time guessing as you said and some traces I could follow on the piggy-back board and measure with a DMM where they go.

Here is what I did to get it to work, I added this to the sketch to define the pins:

#define I2C_ADDR    0x20  // Define the I2C Address where the PCF8574A is located on the bus

#define BACKLIGHT_PIN     7
#define En_pin  4
#define Rw_pin  5
#define Rs_pin  6
#define D4_pin  0
#define D5_pin  1
#define D6_pin  2
#define D7_pin  3

#define  LED_OFF  0
#define  LED_ON  1
LiquidCrystal_I2C  lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);

This works OK although the display seems top be a little slow when updating and the white characters are only white if you look not straight down on the display, playing with the contrast helps a little but at least it is working now after so many hours trying to figure this out.

Now how do I modify the library to have the definitions in there so that I do not have to do this in my sketch?

Thanks for your super quick reply, even at this hour....

6  Using Arduino / Displays / I2C 20x4 LCD not working on Mega on: January 08, 2013, 11:03:27 pm
Hello everybody,

I recently got myself I2C 20x4 white on blue LCD as shown in the pictures. I am running Arduino 1.0.2 with an Arduino Mega R3 but I am unable to get this thing to display anything. I installed the New LCD Library (from Fmalpartida on Bitbucket Liquidcrystal V1.21) and use the 'Hello World' sample but all I see is randomly a block light up. The backlight is on and the address is 0x20 according to the scan-tool. I tried several other libraries but all without luck so far.

Is there anybody that has some insight on how to get this display to work, any help would be much appreciated. Attached are some pictures showing the back-side of the LCD with the I2C board and my simple Mega connections.

Please let me know if there is anything else you need from my side to diagnose this problem.

Thanks a lot in advance!

7  Using Arduino / Installation & Troubleshooting / Mega 2560 R3 install Mega 2560 driver in W7 on: December 09, 2012, 07:48:02 pm
I recently got a new Mega 2560 R3 and during installation in W7 I do not have the option to select the specific driver for it. You can only navigate to the 'drivers' folder and Windows select the corect driver. My board shows up as a Mega 2560 and Windows installs the driver for the 2560 but the board is in fact a Mega 2560 R3. I can see there is a specific driver for the R3 (Arduino Mega Rev 3) in the 'drivers' folder but how do I select this and it is a problem not having the R3 driver installed instead of the normal 2560 driver?

Anybody any suggestions?
Pages: [1]