ARC Pro

Upgrade to ARC Pro

Experience the transformation – subscribe to Synthiam ARC Pro and watch your robot evolve into a marvel of innovation and intelligence.

#9  

Hi Guys,

sorry it was my mistake!

User-inserted image

Now it works, but gives a possibility that range is higher?

Now i can check between 1 V and 0,8 Volt

User-inserted image

User-inserted image

Or its the maximum of the range i can check?

Or i must change the 10k ohm?

Boris

#10  

Yes, try a larger resistor. Like 100K. If you have a large value potentiometer (1 M-ohm or more) you could try putting that in so you can vary the resistance to see what value would be good. Hook it up between the middle connection and either end. Be aware, however, that the larger the resistor the more likelihood you will get noise in on the ADC input point. There is an alternate form of hookup of the voltage divider and the sensor which could reduce the noise, but I won't go into that as yet.

EDIT Also the maximum range you can get is 0-3.3 volts, regardless of the circuit used. If the 100K gives you too much output, try something like 33K or so. What you will want will depend on the range of output you want for a given range of applied force.

#11  

Hi,

if i put a 30K ohm the Volt is 0,84 in standard mode.

If i push the pressure sensor the volt goes higher to 1,04 volt.

Strange complete diffrent.

Update not 300k i wrote wrong i use 30k!

Update 2: forget the diffrense of the Volt... change cable everything is good.

But still if i use a 60k ohm the range is the same!

Maybe less ohm? Use a 5k?

#12  

@rentaprinta The problem I have on my end is that I don't know what change in resistance the sensor is doing for changes in the force applied. Without knowing that it's hard to advise you on what size resistor to use. Do you have an ohmmeter? If so if you could connect it to that and measure the resistance from the sensor with no load and with various pressures it would help a lot. The unloaded resistance is either 1 M-ohm 0r 10M-ohm, I'm not sure which, so you will have to use a high ohm range initially.

#13  

Hi i got it!

With a 90k ist works perfect!

My Script for this:

:loop
$CurrVoltage = GetADC(ADC7)
if ($CurrVoltage <= 15)
  SayEZBWait("Aua das tut ganz schön weh") 
endif
sleep (300)
if ($CurrVoltage <= 85)
  SayEZBWait("Du drückst mich") 
endif
sleep (300)
if ($CurrVoltage <= 205)
  SayEZBWait("Das fühlt sich schön an") 
endif
sleep (300)
goto (loop)

How i can make it like with the Script with the UltraSonic

IF($proxsense > $proxclose and $proxsense< $proxclose2)

Now the script play anything if the voltage is @ 14 , but the script only must play this

if ($CurrVoltage <= 15) SayEZBWait("Aua das tut ganz schön weh")

So how i can change it?

#14  

Hold on. I deleted my last post because I may have misunderstood what you actually wanted. Do you want it to only say a given phrase if the reading is below (or equal to) that value only?

Like This? Say "Aua das tut ganz schön weh" if the reading is <= 15 Say "Du drückst mich" if the reading is >15 but <=85 Say "Das fühlt sich schön an" if the reading is >85 but <=205

#15  

HI,

this sounds good.

In the end its for the finger sensor for my Inmoov.

If the Hand will grab something, i want :

if reading between 200 and 85 = the servo will drive slower if reading between 85 and 15 = the servo drive really slow if reading under 15 = the servo stops

#16  

Ok, good. This should work then.


:loop
$CurrVoltage = GetADC(ADC7) 
if ($CurrVoltage &lt;= 15)
  SayEZBWait(&quot;Aua das tut ganz sch&#246;n weh&quot;) 
  sleep (300)
Elseif ($CurrVoltage &lt;= 85)
  SayEZBWait(&quot;Du dr&#252;ckst mich&quot;) 
  sleep (300)
Elseif ($CurrVoltage &lt;= 205)
  SayEZBWait(&quot;Das f&#252;hlt sich sch&#246;n an&quot;) 
endif
sleep (300)

Examples: If the reading is 0, it will say "Aua das tut ganz schön weh" If the reading is 12, it will say "Aua das tut ganz schön weh" If the reading is 15, it will say "Aua das tut ganz schön weh" If the reading is 16, it will say "Du drückst mich" If the reading is 50, it will say "Du drückst mich" If the reading is 84, it will say "Du drückst mich" If the reading is 85, it will say "Du drückst mich" If the reading is 86, it will say "Das fühlt sich schön an" If the reading is 200, it will say "Das fühlt sich schön an" If the reading is 205, it will say "Das fühlt sich schön an" If the reading is 206 or more it will not say anything

Remember though it will say the phrase every time it goes through the loop. Even when the robot is not gripping anything.

Glad to hear it's working! At least the resistor was close to my original estimate of 100K.:D

Also good to see you are using the readings in a general sense and not for precise readings of pressure applied. That is the best way to apply it. Best of luck!