Recent Posts

Pages: 1 ... 8 9 [10]
91
Bar Sport / Re: school reasearch
Last post by As_Needed - Today at 02:41 am
"It's changed now ;)"

No it's not.

Weedpharma
You're right Weed... Sorry, I'm italian and I misread...

The question should be :
'How did you learn the language that uses Arduino'
92
Thank you this is a perfect answer.
So if there is a manufacter's driver why do i have to port it to Arduino? The manufacturer already created the API in C code... how can i "just use it"?
You haven't said what sensor nor have you shown the code in question. How the hell would anyone here know if it can run on an Arduino?  If it's c code but it's written for a PC (which your continued use of the word driver implies) then chances are it isn't compatible with Arduino.
93
Project Guidance / Re: Adafruit Ultimate GPS, SSD...
Last post by marine_hm - Today at 02:39 am
Very well...  Thank you sir.  I will just go back to the 5V 16MHz
94
The syntax is off but I think this might work....

if(x>10){a=1;}
if(x>-10){b=1;}
delay(100);
if(x>-10){c=1;}
if(x>10){d=1;}
if(a + c = 2 || b + d = 2){goto alarm;}

a=0;
b=0;
c=0;
d=0;
You should wait until you get some basics down before suggesting code to others. You have at least two VERY big no-nos in that code, delay and goto.

It also doesn't help much to just test the same variable twice. Think about it for a minute, if x is less than 0 before the delay, and no new value is assigned to it, what's it going to be after? 
95
... The manufacturer may have some code for it, and if you can understand that code well enough to port it over to Arduino then you're in luck. But the concept of a "driver" is not really applicable here.

If you want our help with that then you should probably divulge some details instead of just calling it "some sensor".
Thank you this is a perfect answer.
So if there is a manufacter's driver why do i have to port it to Arduino? The manufacturer already created the API in C code... how can i "just use it"?


 
96
Most of today's cylinders allow you to strap a reed switch on them that way you could get two positions on one cylinder by reading the state of those and stopping the air supply at a particular point until a weight is reached and then progress to the next point until you have the desired weight and at that point it would shut off completely.

Seen this done in automotive welding fixtures where something goes from fully open to load parts then to a pre clamp position until everything is in place and then to clamp position and its possible to add more than 2 to get a more precise position.

Reading reed switches is very easy and relatively cheap too.

There are also inductance types that allow you to control stroke points almost like a potentiometer reading but I don't have any experience with those.

EDIT
I have seen cylinder marked with a scale so operators can slide the reed switch and know where to  position it to change the stroke for a different component and I think that with a little thought that process could be converted to flow or an approx weight. eg. 2mm movement may equate to .5 liters flow rate or an extra kilo etc. Don't ask me to do the real math though.
97
I need help with codes. And  i also want to know how to attach arduino kit to motor. Please help me out.
98
Project Guidance / Re: Using a scale to control a...
Last post by dlloyd - Today at 02:32 am
What is the test time to get to the target weight of 2lb? (this is important).

Quote
If the AC coils has a delay in it wouldn't I at least get results that are constantly wrong?
If AC is at 60Hz, then your test time would vary by ±8.3ms. Knowing the test time and avg flow rate, then you could calculate how much variance in target weight this represents.

Do you have links to your products and a schematic or connection diagram?

EDIT: I'm already thinking the solenoids should be DC controlled by MOSFET. Also, I agree that delays in code should be removed. For an application like this, I would use interrupts.
99
When I uncomment the delay on call function it doesnt hang for now.
I want to use  watchdog for more than 8 sec, how can I do it for 5 minutes

8 seconds is all you can get. For more than that you have to reconfigure the wdt to interrupt mode and write an ISR to count those interrupts. Once you get to 5 minutes worth, you hang the code in the ISR and the second time the dog bites you'll get a reset.
100
There are no "drivers" for sensors to interact with Arduino. Arduino is just a chip with some pins. Those pins can either read a voltage or output a voltage. When and with what timing is all about the code on the board.  First Google and see if anyone else has written code for this mystery sensor. If not, then you'll have to look over the datasheet and study up on whatever sort of communication it may use and write your own code to interface with it.  The manufacturer may have some code for it, and if you can understand that code well enough to port it over to Arduino then you're in luck. But the concept of a "driver" is not really applicable here.

If you want our help with that then you should probably divulge some details instead of just calling it "some sensor".
Pages: 1 ... 8 9 [10]

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy