Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / analog stick help on: October 20, 2011, 07:39:43 pm
Hi all,

I am trying to build a robot that uses analog sticks to control servos and I am able to have the arduino read the input of the analog sticks but I am not sure how to get the servos to respond to the values. If anyone has sample code for a similar project I would appreciate it.
2  Using Arduino / Project Guidance / Teensy to arduino comm on: August 04, 2011, 03:12:46 pm
Hi all,

I am trying to build a remote control robot that uses a Teensy 2.0 in the controller and an Arduino nano 3.0 in the receiver. I know that the Teensy, the transmitter/receiver, and the arduino work fine, but the serial communication is not working. Does anyone know how to get the two boards communicating with serial date, is there a different protocol? If anyone knows of or has any sample code that has a Teensy sending serial data to an arduino I would greatly appreciate it.

Thanks,

-James
3  Using Arduino / Project Guidance / Re: Data link problem (code or mechanical?) on: August 03, 2011, 10:18:46 am
Mark I initially did not have them connected and then I connected them but the problem was the same
4  Using Arduino / Project Guidance / Data link problem (code or mechanical?) on: August 02, 2011, 03:13:43 pm
I am building a  RC robot, using edited code from online, and having a problem with the communication between the controller and the receiver.I am trying to test the data link between a Teensy 2.0 and an Arduino Nano 3.0. I have code on the teensy to make it output “5”. However, when I have the serial monitor read the data on the arduino it keeps coming as -1. I am trying to get the link to work properly so that I can have the teensy read the value of analog sticks and then wirelessly transmit it to the arduino. But for now I have a wire connecting the RX pin on the arduino Nano to the TX pin ( 8 ) on the teensy to see if I can get them communicating. I am not sure if this is a code problem or a mechanical problem but I do know both the arduino and the Teensy work fine. I have attached the Teensy code(print 5) as well as the arduino code (receive) and I added the code I will have on the teensy once I get the data link working if you are curious.

Any help is appreciated

Thanks,
-James
5  Using Arduino / Programming Questions / Omnidirectional robot issues on: August 02, 2011, 07:39:37 am
I am building an omnidirectional robot using 3 omni-wheels, 3 servos, a transmitter/receiver par, an arduino nano as the receiver and the transmitter is a Teensy 2.0. I am having a problem with my code and the data link between the Teensy and the arduino. In the receiver code (attached) my serial monitor giving out -1 as the data value, even when I ground the RX pin on the arduino, which should make it zero. I have been struggling with this for quite some time and I figure if I can get the data value to be 0 when the input is grounded then I will be able to make the value change by reading the value of my analog sticks with the teensy and transmitting it to the arduino. I found the code online and made some changes to try and make it work properly but its still not working. This is the website that I got the idea from.http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2019

any comments  are greatly appreciated

thanks,
-James
James
6  Using Arduino / Programming Questions / Re: Omni-directional robot on: August 01, 2011, 06:28:11 pm
sorry here is the link http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2019
7  Using Arduino / Programming Questions / Omni-directional robot on: August 01, 2011, 06:27:14 pm
I am building an omnidirectional robot using 3 omni-wheels, 3 servos, a transmitter/receiver par, an arduino nano as the receiver and the transmitter is a Teensy 2.0. I am having a problem with my code and the data link between the Teensy and the arduino. In the receiver code (attached) my serial monitor giving out -1 as the data value, even when I ground the RX pin on the arduino, which should make it zero. I have been struggling with this for quite some time and I figure if I can get the data value to be 0 when the input is grounded then I will be able to make the value change by reading the value of my analog sticks with the teensy and transmitting it to the arduino. I found the code online and made some changes to try and make it work properly but its still not working. This is the website that I got the idea from.

any comments  are greatly appreciated

thanks,
-James
8  Using Arduino / General Electronics / Re: transmitter troubles on: July 21, 2011, 10:48:38 pm
Yes it is just input to the RX pin on the arduino and then the arduino controls servos based on the signal.
9  Using Arduino / Programming Questions / #include <avr/pgmspace.h> ?? on: July 21, 2011, 08:54:35 pm
Hi all,

I have this code (attached) and I am using it for a project I am working on. But I cannot find the pgmspace library download anywhere and I do not know how to add a library on a mac which I must do. Also on the Transmitter code(attached) I cannot get it to verify the "static HardwareSerial Uart;" command.Does anyone know how to fix that?

Thanks for the feedback
10  Using Arduino / General Electronics / Re: transmitter troubles on: July 21, 2011, 03:26:13 pm
I added the Antennas yet the problem has not gone away.

KE7GKP: Yes it was from the correct data output pin on the receiver, I double checked after your suggestion. I agree that the signal is getting there but it is very low but why?

Thanks
11  Using Arduino / Project Guidance / Omnidirectional robot issues, please help on: July 21, 2011, 02:44:06 pm
Hi all,

I have been building a robot that I saw on a website (http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2019). I have attached the code I am using.The problem I am having is that when I upload the code to the (receiver) arudino nano 3 the servos simply move in one direction regardless of what my analog sticks are telling it to do. I tried to test if it was a transmitter problem by connecting the teensy to the arduino with a wire but it is still not working. Then I turned off the controller all together and the servos kept on spinning so my belief is that there is something wrong with the code. IS it necessary to download library avr/pgmspace.h? Also I am having a problem with the arduino running on my mac but it works fine on PC's, I keep getting the Programmer not responding error.

Parts:

controller: Teensy2.0, transmitter, 2 analog sticks, a couple caps and an lm7805, 4 AA batteries

Robot: Arduino Nano 3.0, receiver, 3 servos, 4 AA batteries, and an on off switch.

Thanks for any help or ideas.


12  Using Arduino / General Electronics / Re: transmitter troubles on: July 21, 2011, 02:29:22 pm
1. The antennas are optional, but as I am testing in a six inch area I dont think they are necessary 2. Yes the receiver is getting good power (not the optimal 9v but it is getting 6) 3. I am using this 315MHZ low cost transmitter/receiver pair http://www.robotshop.com/seeedstudio-315mhz-rf-low-cost-transmitter-receiver-pair.html

Thanks for your time
13  Using Arduino / General Electronics / transmitter troubles on: July 21, 2011, 01:45:55 pm
Hi all,

I am new to circuits so I appreciate any help. I have a 315MHZ transmitter/receiver pair but they are not working correctly. I have a Teensy 2.0 reading the value of analog sticks and then sending that value through the transmitter to and Arduino Nano 3.0. My problem is that the signal being outputted by the transmitter is a lot stronger(higher) than the one being received by the receiver.(I attached my oscilloscope image to help you understand the problem, CH1 is my transmitter and CH2 is the receiver). please give me any ideas you have, at this point ill try anything.

Thanks

Pages: [1]