Now Hiring!

Still looking... :slight_smile: The sensors have changed to the type pictured below.

0J1178.150.jpg

So how is that not "too analog" also :slight_smile:
Isn't the range on those kind of small for the distance in feet you were after (I think you had go out stop at 2 feet, return, 4 feet, return, 6 feet, return, 8 feet/end, repeat in the other direction):

"This small digital distance sensor detects objects between 2 and 10 cm (0.8" and 4") away."

The distance sensor is only to stop the thing from crashing into the stops ad both ends of the track. The travel then return is/can be handled by timing the travel. Hmmm, I probably made it appear more complicated than it is. What I have working now: track is 14 ft long, the Arduino mini driving a continuous rotation @ 6v takes 48 seconds to travel from one end to the other using the servo sweep example by adjusting the time. the plan: This doesn't have to be exact, using that idea break up the time into 4 pieces and have them run consecutively. The sensor only stops that script and starts another which runs the servo in reverse which is then replayed ..........
Thanks much

I picked up the Programming Arduino - Getting Started with Sketches book today and hope to get a handle on this.
other books I have: Getting started with Arduino ,Practical Arduino and Programming Interactivity.

I plan to Give Lab View a try, any thoughts on that or any type of graphical programming software?

Maybe this for graphing
http://www.negtronics.com/simplot

electric_AL:
Greetings All. I am new to the Arduino programming language and is looking to hire a professional to handle the code formulation and maybe deployment for a project coming due. This link will give you an idea of what I am doing. Arduino Forum

I live in Orange county, NY and work in New Jersey, 20 minutes drive from the GWB. Please send an email If you are interested - electric_al@hvc.rr.com.

Thanks

Al

this mailbox i invalid!

Hi All
I am still looking for anyone to help with the code for my project. One again, this is a PAID gig. I am one week away from the due date and is still in the testing stage. I can drive the servos and I can test the sensors using the serial monitor but is yet to have the sensor and the servo working together.

WOW, 800 plus views and no takers...

electric_AL:
Hi All
I am still looking for anyone to help with the code for my project. One again, this is a PAID gig. I am one week away from the due date and is still in the testing stage. I can drive the servos and I can test the sensors using the serial monitor but is yet to have the sensor and the servo working together.

It's been almost three months sense your original posting and with one week to blast-off, I assume it's not going to happen you you.

Lefty

#801 here
I'll take a look
you can PM or email me

cheers
Mike

PS UK based, but electrons get everywhere!

hmm
emails are bouncing
very strange

The original message was received at Mon, 23 Jan 2012 21:30:58 GMT
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
electric_al@hvc.rr.com
(reason: 550 5.1.1 - Invalid mailbox: electric_al@hvc.rr.com)

It looks like jumpjack tried to contact you.

I'm sure there's many people who are happy to help with a specific problem, maybe those that can do the work are already occupied.

If I read correctly you need to

run for 4 seconds
return to start
run for 8 seconds
return to start
run for 12 seconds
return to start
run for 16 seconds
return to start

Is that it?


Rob

No, he wanted to use ultrasonic sensors & stuff.

Just as an over/end of travel measure though isn't it?


Rob

hi All, email addy is good, just gave Time Warner Cable a piece of my mind.

this is correct:

run for 4 seconds
return to start
run for 8 seconds
return to start
run for 12 seconds
return to start
run for 16 seconds - by now should reach end of track

then do the same from the other direction.

the sensors are to detect the end of the track.

then do the same from the other direction.

What does this mean? Move to the other end then repeat the above but reversed?


Rob

A B C D E
5 track positions
A-B-A
A-C-A
A-D-A
A-E
E-D-E
E-C-E
E-B-E
E-A
repeat

Exactly!

A B C D E
5 track positions
A-B-A
A-C-A
A-D-A
A-E
E-D-E
E-C-E
E-B-E
E-A

thanks
repeat

Additionally, I am also in need of an Arduino program to make a lap timer.

The board: Mega 2560
The Sensors: Sharp Proximity sensors = (no contact triggering is a must)
LCD display: TBD

THe Idea: how long it takes ( seconds/minutes) for my Trolley to travel 10feet of track and display it on a lcd screen and be resettable. Something similar to a Slot Car lap timing system.

Paid!

while I'm there I can do that as well
all integrated in one package or two separate (but related) projects?

Here's a rough prototype of some code that should make a start.

#define SECTION_TIME 1000  // # of mS to travel a section
#define FOWARDS 	1
#define BACKWARDS 	0

volatile boolean stop;

void startMotors (int direction) {}; // you write these
void stopMotors () {};

void move (int sections, int direction) {
	
	long time_to_travel = sections * SECTION_TIME;
	long start_time = millis();
	long stop_time = start_time + time_to_travel;
	
	startMotors (direction);
	while (millis() < stop_time && !stop) {}	
	stopMotors();
	
	stop = false;
}

void fontSensor_ISR() {
	stop = true;
}

void backSensor_ISR() {
	stop = true;
}

void setup () {
	attachInterrupt (0, fontSensor_ISR, RISING);
	attachInterrupt (1, backSensor_ISR, RISING);
}

void loop () {

	move (1, FOWARDS);		// move to A
	move (1, BACKWARDS);
	move (2, FOWARDS);		// move to B
	move (2, BACKWARDS);
	move (3, FOWARDS);		// move to C
	move (3, BACKWARDS);
	move (4, FOWARDS);		// move to D
	move (4, BACKWARDS);
	move (6, FOWARDS);		// move to E (stopped by sensor)

	move (1, BACKWARDS);	// move to D
	move (1, FOWARDS);
	move (2, BACKWARDS);	// move to C
	move (2, FOWARDS);
	move (3, BACKWARDS);	// move to B
	move (3, FOWARDS);
	move (6, BACKWARDS);	// move to A (stopped by sensor)
	
	delay (1000);

}

It assumes that you get an interrupt from the sensors if you get too close, but now that I think about it that probably is not the case so that should be changed.

Can you use that as a start and build it from there?

I could not get onto the forum most of yesterday so didn't see the new requirements.


Rob