Ireland
Asked — Edited
Resolved Resolved by Rich!

Adc Disconnecting Ezb

would appreciate assistance please included a short set of instructions that reads a potentiometer on a motor shaft and then moves a motor forward & reverse
but for some reason it crashes my EZB after a few moves

script :one set(d22, on) ADC_Wait(ADC7, lower, 120) set(d22, off) sleep(900) set(d23, on) ADC_Wait(ADC7, higher, 180) set(d23, off) sleep(900) goto(one)

Debug report 27/10/2014 22:23 - Attempting connection on 192.168.1.1:23 27/10/2014 22:23 - Connected to 192.168.1.1:23 27/10/2014 22:23 - EZ-B reports EZ-B v4 OS 27/10/2014 22:23 - Welcome to EZ-B v4 Beta! 27/10/2014 22:23 - EZ-B v4 ID: 46-54-0-0-47-255-58-58-56-38-37-38 27/10/2014 22:23 - Connected 27/10/2014 22:23 - Disconnected 27/10/2014 22:23 - Attempting connection on 192.168.1.1:23 27/10/2014 22:23 - Connected to 192.168.1.1:23 27/10/2014 22:23 - EZ-B reports EZ-B v4 OS 27/10/2014 22:23 - Welcome to EZ-B v4 Beta! 27/10/2014 22:23 - EZ-B v4 ID: 46-54-0-0-47-255-58-58-56-38-37-38 27/10/2014 22:23 - Connected 27/10/2014 22:23 - Setting battery monitor voltage: 6.6 27/10/2014 22:23 - Setting battery protection: True 27/10/2014 22:23 - Setting i2c rate: 100000 27/10/2014 22:24 - Comm Err: System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.Stream.ReadByte() at EZ_B.EZB.(Int32 , Byte[] ) 27/10/2014 22:24 - BbytesToExpect: 2 27/10/2014 22:24 - ? Received: 27/10/2014 22:24 - Disconnected


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

#1  

Sounding like a broken record but, what is your power source? Most of these issues are from a servo using more power than can be supplied by the battery.

Ireland
#2  

don't think its a power issue EZB has seperate 8.7v 1.5amp supply

one ADC input and two digital outputs used on EZB think its something to do with script

#3  

Try using repeatuntil or repeatwhile as a loop instead.... It may not make sense, but try it...

It still might be a power issue, though

United Kingdom
#4  

The script looks fine. Check your circuit

Ireland
#5  

Using hbridge

8.7V 1.5amp supply to Ezb 5v supply to motor

d22 to in1 d23 to in2 gnd to gnd adc7 to potentiometer

The resistance of the potentiometer is 4k7 is it possible that may be too low

Ireland
#6  

Disconnected everything from EZB except adc7 ran script and it disconnected EZB after approx 1 minute

#7  

Do you know the actual ADC values present when you read ADC7? Try printing the value out and see what it shows.

#8  

The analog port's on the EZB4 voltage level is only 3.3v.. So If you are powering the pot from the analog ports are you sure the pot will work with 3.3V?

Ireland
#9  

Richard It has to be something along that line as with only the ADC port connected it will crash out will do some further tests when I get home later thanks

Ireland
#10  

Thanks to all did a full re install of EZ Builder seems to have resolved issue well it has worked for more than a few minutes so fingers crossed

At times like this I need a resolved by " all " option

Ireland
#11  

@Richard @Robot -Doc @Rich So who do I give the credit for resolving and assisting my question had to draw from hat for this one Thanks to all as usuall for quick response

:P:P:P