1
hi jose thx for the reply. i've connected my wifi shield to my computer and i can ping it. but i still can't upload the arduino source from ide. is library on the arduino ide didn't match with this wifi shield. please let me know the answer thx
2
« Last post by gregrahkin on Today at 01:52:54 am »
I have an Arduino UNO v3, a DFRobot Relay Shield and a DFRobot LCD Keypad Shield.
I have reconfigured the Relay Shield to use digital pins, D0 - D3.
Both shields work perfectly, by themselves. In Other Words, I load a sketch on the UNO that controls the LCD and the Relays. If I plug in the LCDKeypad into the UNO, it works perfectly. If I remove the LCDKeypad from the UNO and then plug in the Relay Shield, it works perfectly. If I then plug the LCDKeypad into the Relay Shield, the LCDKeypad display does not work. The buttons still control the relays correctly.
Here are the lines in the sketch I use to declare/init the display / relays: LiquidCrystal lcd (8, 9, 4, 5, 6, 7); byte relayPin[4] = {0, 1, 2, 3};
And then in the setup() routine: for(i = 0; i < 4; i++) pinMode(relayPin,OUTPUT); delay(200); for(i = 0; i < 4; i++) digitalWrite(relayPin,LOW); delay(2000); // grasping at straws here lcd.begin (16, 2);
* Initially, on powerup, the display backlight lights and the power LED on the LCDKeypad is on. * After about a second, the backlight flickers a bit and then goes off. The power LED on the LCDKeypad turns off with the backlight. * Then, if you press any button, the backlight and the power LED turns on, but no text is visible. * The power LED on the UNO and the Relay Shield are on all the time.
The voltage provided by the USB port is not really adequate to power the Relay Shield. I am using a separate, 9V power supply to power the UNO and the shields. After I put the sketch on the UNO, I disconnected it from the computer.
I am not sure if this is relevant, but if I try to load a sketch on the UNO when the Relay Shield is plugged in, I get the dreaded: "avrdude: stk500_getsync(): not in sync: resp=0x00" error.
PLEASE HELP!
3
« Last post by jakfourie on May 20, 2013, 11:00:12 pm »
Hi Jose, The code below is what I'm using with this shield on its own. http://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_%28L298N%29_%28SKU:DRI0009%29//Arduino PWM Speed Control: int E1 = 6; int M1 = 7; int E2 = 5; int M2 = 4; void setup() { pinMode(M1, OUTPUT); pinMode(M2, OUTPUT); pinMode(E1, OUTPUT); pinMode(E2, OUTPUT); } void loop() { //Forward digitalWrite(M1,HIGH); digitalWrite(M2, HIGH); analogWrite(E1, 100); //PWM Speed Control analogWrite(E2, 100); //PWM Speed Control delay(2000); //2 seconds //Backward digitalWrite(M1,HIGH); digitalWrite(M2, HIGH; digitalWrite(E1, HIGH); //PWM Speed Control digitalWrite(E2, HIGH); //PWM Speed Control delay(2000); //2 seconds //Left Turn digitalWrite(M1,HIGH); digitalWrite(M2, HIGH); analogWrite(E1, 100); //PWM Speed Control analogWrite(E2, 0); //PWM Speed Control delay(2000); //2 seconds //Right Turn digitalWrite(M1,HIGH); digitalWrite(M2, HIGH); analogWrite(E1, 0); //PWM Speed Control analogWrite(E2, 100); //PWM Speed Control delay(2000); //2 seconds //Wait digitalWrite(M1,LOW); digitalWrite(M2, LOW); analogWrite(E1, 0); //PWM Speed Control analogWrite(E2, 0); //PWM Speed Control delay(2000); //2 seconds } Everything works fine except the backwards portion. Thank you in advance
4
« Last post by Jose on May 20, 2013, 06:57:57 pm »
Hi,
I think if the values are growing, are most likely to be an error from the filtering system.
Giri, try to use the library supplied on the wiki page. That one has filtering as well, but it automatically generates the offset at bootup time. That means, when you power it up, you have to make sure it is steady, not moving. for a second or so..
Hope that helps, Jose
5
« Last post by Jose on May 20, 2013, 06:29:50 pm »
Hi,
This Should be fixed by now. please refresh your cache and try again.
Best, Jose
6
« Last post by rene.mm on May 20, 2013, 05:03:40 pm »
Hi everyone,
I'm having the exact same problem. My GSM and GPRS are working correctly because I can make phone calls, send sms messages, and comunicate via HTTP, but I still have problems with the GPS. I'm able to connect to the GPS but it sends me "Unknown location" or blanks on the values. I tried moving the module outside but sill nothing happens.
Jose, I sure LearningRobot was very specific on what code he is using. He is using the example of the wiki.
LearningRobot, I'm not sure why but the code started working (at least sort of)when i activated the Internet service of my Sim card. And also, try to restar the module an switching between the GPS and the GSM with the Uart select switch. I'm sure is nothing to do with the code because mine is looping ok, but still is sending me Blanks and 0s.
if you can make it work please let me know.
7
« Last post by Phoebe on May 20, 2013, 04:14:14 pm »
WOW Pretty cool  Look forward to your deeper project 
8
« Last post by lumi on May 20, 2013, 03:48:59 pm »
Hi Mathias,
sorry about the late reply. I am trying to solve that problem. Apparently there are just 12 teeth on the wheel. I am checking the sample code and will do a test run. When I got a result I'll let you know.
9
« Last post by Jose on May 20, 2013, 01:07:25 pm »
Hi LearningRobot,
I'm not exactly sure what your code is doing. If you can paste the whole code it would be more helpful. Make sure you are outside where GPS don't have any problem connecting, and that the battery has enough power. (USB powering alone is not enough).
Best, Jose
10
« Last post by Jose on May 20, 2013, 01:04:15 pm »
Hi Csmith04,
The chip seems not to support HSPA spectrum, I believe I got the same problem with my provider.. I will keep an eye on this and will try other provider (i think they do support it).
Every provider has their spectrum.. I think they should offer support for all those people with GSM phone..
GPRS is a no go with your provider?
About your other questions, this module is driver by AT commands. You can set this commands on your Arduino code easily. Tho I always run the commands stand alone and move them one by one to Arduino. Quite often using a software serial to help debugging..
|