Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Image transmission over serial link? on: June 04, 2013, 07:17:21 pm
Thanks for the replies guys. ^___^

@Runaway Pancake: Yeah, that was going to be my second question - is it possible to change the file type from .jpg to .bmp in a sketch? Perhaps using some kind of file rename method?
I just used that display as an example since I had it lying around but I can get a different one.  smiley-mr-green

So any ideas on what direction I should head in relation to the code? I'm not entirely sure where to start.  smiley-sweat
2  Using Arduino / Project Guidance / Image transmission over serial link? on: June 04, 2013, 04:30:31 pm
Hi guys. ^___^

I just wanted to ask if it would be possible to send images from one Arduino to another via the RX/TX pins? I was just curious since I was planning on using a TTL Serial Camera (http://www.adafruit.com/products/397) to take photos (when triggered from a remote control), save the photo to a microSD card and then send that image to the Arduino board in the remote control (via a Bluetooth module). The board in the remote would then store the image in a microSD card and then display it on a LCD screen (http://www.adafruit.com/products/797).
So essentially, I'd like to be able to take photos from the camera on my robot and then send the image back to the user and the idea is to be able to change this to work over a long range.

So I was just wondering if it would be possible?  smiley-confuse

Thank you for your time.

Best Regards,
AKdaBAOUS
3  Topics / Robotics / Re: Help require for Servo Control Problems ... on: April 29, 2013, 11:58:33 am
I'm not too sure if this is of any relevance or not but in all the tutorials I've seen, they've all used Pins 9 & 10 ... could they be special pins in this case? (I doubt it though  smiley ).
4  Topics / Robotics / Re: Help required for Servo Control Problems ... on: April 29, 2013, 11:22:28 am
Ok, so I might have been too quick to give up there.  smiley-sweat
I gave the code another go and this time, I added in ...
Code:
pinMode(pin, OUTPUT)
... for each of the servos and now everything works fine.  smiley-lol
As far as current pulling goes, the 6 servos in total were only pulling about 300mA - then again, they are pretty small and the frame they are fixed into is incredibly light.  smiley-mr-green

Anyway, I've posted an annotated copy of the final code in case anyone else ever has this problem. Hope it helps!  smiley-wink

Code:
// Description: Setting 6 servos in a robot's legs to their
// original "0" position.
// Date: 29th April 2013.

// Include the relevant Servo Library.
#include <Servo.h>

// Provide names for the servos to be controlled.
Servo RH; Servo RK; Servo RA; // Right Leg.
Servo LH; Servo LK; Servo LA; // Left Leg.

// This was the key part of getting it to work - I had to set
// the pins that the servo was connected to as OUTPUTS. Then
// it worked perfectly fine.
void setup()
{
  pinMode(2, OUTPUT);
  RH.attach(2);
  pinMode(3, OUTPUT);
  RK.attach(3);
  pinMode(4, OUTPUT);
  RA.attach(4);
 
  pinMode(5, OUTPUT);
  LH.attach(5);
  pinMode(6, OUTPUT);
  LK.attach(6);
  pinMode(7, OUTPUT);
  LA.attach(7);
}

void loop()
{
  // Gives me time to lift the robot off the table.
  delay(5000);
 
  // Sets all the servos in the Right Leg to their origin.
  RH.write(90);
  RK.write(90);
  RA.write(90);
 
  // Sets all the servos in the Left Leg to their origin.
  LH.write(90);
  LK.write(90);
  LA.write(90);
}

AKdaBAOUS
5  Topics / Robotics / Re: Help require for Servo Control Problems ... on: April 29, 2013, 10:07:33 am
Ok, so a single servo seems to work fine ...
I have a servo controller IC anyway and I was originally intending to use that - I just wanted to see if I could get the servos up and running directly from the Arduino but that doesn't seem to be working so I'll put a lid on it.

Thank you for your help anyway.  smiley-mr-green
6  Topics / Robotics / Re: Help require for Servo Control Problems ... on: April 29, 2013, 10:00:56 am
Sorry about that, yep, the grounds are connected to the Arduino ground. ^__^
Oh, and the supply can give out a max. of 5A.
7  Topics / Robotics / Re: Help require for Servo Control Problems ... on: April 29, 2013, 09:47:38 am
I actually haven't tried with a single servo  smiley-red ... I shall do that now.  smiley-sweat
8  Topics / Robotics / Re: Help require for Servo Control Problems ... on: April 29, 2013, 09:41:09 am
They do briefly settle at 0 but only for about half a second (or less) before going haywire.
I'm actually using a custom made board but the servos are being powered from an external bench power supply so I don't think that's a problem ...
9  Topics / Robotics / Help require for Servo Control Problems ... on: April 29, 2013, 08:57:45 am
Hi everyone! ^___^

I've been trying to get some basic control for some servos for the past few hours (sorry, I'm a noob at coding  smiley-confuse ) and after following the tutorials, I've had no luck whatsoever. All I want the servos to do is just stay in their "0" position and not move but every time I upload the program and the servos just move off to some random positions ...
I have absolutely no idea where to go from this so I was wondering if someone could shed some light on this for me - I'd appreciate it greatly!  smiley-mr-green

Thanks in advance! ^___^

Here's my code, I'm trying to run 6 servos simultaneously:

Code:
#include <Servo.h>

Servo RH; Servo RK; Servo RA;
Servo LH; Servo LK; Servo LA;

void setup()
{
  RH.attach(4);
  RK.attach(5);
  RA.attach(6);
 
  LH.attach(7);
  LK.attach(8);
  LA.attach(9);
}

void loop()
{
    RH.write(0);
    delay(10);
    RK.write(0);
    delay(10);
    RA.write(0);
    delay(10);
   
    LH.write(0);
    delay(10);
    LK.write(0);
    delay(10);
    LA.write(0);
    delay(10);
}


AKdaBAOUS
10  Using Arduino / Networking, Protocols, and Devices / Re: Is it possible to upload sketches over Bluetooth to an Arduino? on: January 30, 2013, 01:49:08 pm
Thanks for the advice  smiley-mr-green - I'll give it a go when my new Bluetooth module arrives (turns out that there was some voltage problems and I kinda blew it up  smiley-sweat).

AKdaBAOUS
11  Using Arduino / Networking, Protocols, and Devices / Re: Is it possible to upload sketches over Bluetooth to an Arduino? on: January 25, 2013, 08:14:28 pm
Ok, I've tried over 50 times and it didn't work so I officially give up - I'll now pursue another solution.  smiley-mr-green
Thanks for all the help anyway!  smiley-lol

Regards,
AKdaBAOUS
12  Using Arduino / Networking, Protocols, and Devices / Re: Is it possible to upload sketches over Bluetooth to an Arduino? on: January 25, 2013, 07:36:17 pm
Thanks for the tip!  smiley-lol

AKdaBAOUS
13  Using Arduino / Networking, Protocols, and Devices / Re: Is it possible to upload sketches over Bluetooth to an Arduino? on: January 25, 2013, 07:17:49 pm
Ah cool, well I'll give the timing a try and if that doesn't work then I shall attempt something different.  smiley-mr-green
Thanks!  smiley-lol
14  Using Arduino / Networking, Protocols, and Devices / Re: Is it possible to upload sketches over Bluetooth to an Arduino? on: January 25, 2013, 06:55:11 pm
Hi again. ^___^
I have a feeling that the bluetooth module is broken because after following pretty much every tutorial out there, I can't seem to get a piece of software to detect it so I've given up on that for the time being.  smiley-sad

Just another question - how would I go about programming the ATmega328 using a wired connection? Could I simply just connect the RX and TX from a serial port in reverse to the RX and TX on the ATmega328 (i.e. RX/TX and TX/RX)? Or is there something more detailed that requires to be done?

Thanks again in advance!  smiley-lol

AKdaBAOUS
15  Using Arduino / Networking, Protocols, and Devices / Is it possible to upload sketches over Bluetooth to an Arduino? on: January 25, 2013, 02:09:53 pm
Hi everyone.  smiley-mr-green
I have a quick question - would it be possible for me to upload a sketch over Bluetooth onto my Arduino?

Some extra information:
I'm using a custom created board with an ATmega328 with the Arduino bootloader on it. The Bluetooth Module that I'm using is http://dx.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299.
I've connected the RX to TX and TX to RX and the power wires to the required +5V and ground. I can connect to the module using my Windows and my Mac but when it comes to uploading a program, it keeps saying that "Serial port 'COM5' already in use. Try quitting any programs that may be using it."
I'm pretty sure that no other programs are using it, so ...  smiley-confuse

Anyone have any suggestions?
Or am I just doing something really stupid?  smiley-sweat

Thanks in advance!  smiley-grin

AKdaBAOUS
Pages: [1] 2