Search found 73 matches

by WethaGuy
Sat Mar 02, 2013 10:19 pm
Forum: Wireless/RF
Topic: xbee, arduino Mega, Data
Replies: 18
Views: 3575

Re: xbee, arduino Mega, Data

I've found it easiest to just map the joystick x/y to a logical array. The best array size varies from joystick to joystick and how precise you need the control to be. The pots never seem to match between x and y and they aren't smooth from 0 to 1023 and 500 is not always center either. To map the a...
by WethaGuy
Sat Mar 02, 2013 9:24 pm
Forum: Wireless/RF
Topic: Getting Arduino SoftSerial to work
Replies: 5
Views: 1145

Re: Getting Arduino SoftSerial to work

I notice in your other thread that you are using the Mega. That has 4 hardware UARTS. So, you shouldn't need to use SoftwareSerial. Just use one of the other hardware serials.
by WethaGuy
Sat Mar 02, 2013 1:11 pm
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

It could be interference with the gps receiving signals or electrical interference in your circuit. As I said, I'm not familiar with gsm but you can try this: Comment out all the cell writes and prints except cell.println("AT+CMGF=1"); // set SMS mode to text This should not cause the cell to go to ...
by WethaGuy
Sat Mar 02, 2013 8:20 am
Forum: Wireless/RF
Topic: Getting Arduino SoftSerial to work
Replies: 5
Views: 1145

Re: Getting Arduino SoftSerial to work

Softwareserial is for serial communication using non-standard physical pins and is really useful in connecting multiple serial devices to your arduino. In the loop function, that program sends what was received from the serial and softserial port to the other. If you type something into the serial p...
by WethaGuy
Sat Mar 02, 2013 8:12 am
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

... I think you can see that once the speeding condition is satisfied, gsm comes into action, and there after gps data is not read at all. ... Good troubleshooting. You've identified exactly where the problem is. The gsm must be continously talking with the arduino on the serial line and not lettin...
by WethaGuy
Fri Mar 01, 2013 7:52 am
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

As written, that code will kill the gps serial connection, then later start a new gps serial connection and call a read from the gps before it has time to update. Then, it will kill the gps serial connection, start a new connection later... etc. You would not receive any gps data because the gps upd...
by WethaGuy
Thu Feb 28, 2013 7:24 pm
Forum: Wireless/RF
Topic: Getting Arduino SoftSerial to work
Replies: 5
Views: 1145

Re: Getting Arduino SoftSerial to work

What device communicating at 4800bps do you have connected to pins 10 and 11?
by WethaGuy
Thu Feb 28, 2013 7:18 pm
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

...(the arduino cannot receive data simultaneously from gps and gsm I guess)... These are just serial devices, no different than the connection to your computer through Serial. There is no software reason the gps and gsm cannot both be connected. If you power them both from your uno, you may run in...
by WethaGuy
Tue Feb 26, 2013 8:19 pm
Forum: Arduino
Topic: Wire library question
Replies: 2
Views: 918

Re: Wire library question

Yes, it is blocking. The Wire library that Arduino uses is blocking, but the AVR TWI is not. Check out the wire library reference below for more details.

Here's the Arduino environment and Atmel chip references (starts at pg 209 for twi).
by WethaGuy
Tue Feb 26, 2013 7:19 pm
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

The first step is to add debugging println's at the beginning and end of every logic break (loops, functions, etc...) and for the values of the variables involved. That will tell you what is happening. LED's being on and off don't tell you that. This should make it apparent exactly where your proble...
by WethaGuy
Tue Feb 26, 2013 6:24 pm
Forum: SparkFun Product Questions
Topic: Stellaris board
Replies: 7
Views: 982

Re: Stellaris board

Since Energia is based on the Arduino IDE, some sketches designed for the Arduino will work with Energia on the MSP430 without modification. The more simple the program, the more likley it will "just work" with the MSP430. Others will require that you make, usually minor, changes to the code to make...
by WethaGuy
Mon Feb 25, 2013 6:14 pm
Forum: SparkFun Product Questions
Topic: Stellaris board
Replies: 7
Views: 982

Re: Stellaris board

MSP430 Launchpad is NOT the Stellaris Launchpad. MSP430 and Stellaris are very different boards using very different technologies. However, you can use Energia , an IDE based on Arduino, for both boards. Many Arduino sketches work with only minor changes. Not everything in Arduino has been adapted t...
by WethaGuy
Sun Feb 24, 2013 3:20 pm
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

The program gets stuck as soon as the speed limit is exceeded..it does not return to the loop. If you add a println "Inside loop()" at the beginning of the loop() function, I think you will see that you are leaving policeLights() and going through the loop() each time a message is sent. The only wa...
by WethaGuy
Sun Feb 24, 2013 10:39 am
Forum: Arduino
Topic: Programming arduino uno
Replies: 36
Views: 2221

Re: Programming arduino uno

void loop() { if (readGPS()) { if (debugMode) { debug(); } speeding = isSpeeding(); } if (digitalRead(TEST_BUTTON) == LOW) { buttonPressed = true; } else { buttonPressed = false; } if ((speeding || buttonPressed) && (!(speeding && buttonPressed))) { policeLights(); } else { allOff(); } } The behavi...