Asked — Edited

How To Add More Digital And Analog Ports Tutorial

Started this post on how to add more digital and analog ports to your EZB without losing speed or spending over $70 for another EZB

EDIT 3-31 ITS $69 FOR EZB and to usa its $25.56 CHEAPEST rate without tracking to other countries its a lot more. BOARD COST for circuit is under $3

BUT in my post there is disadvantage and advantages of both ideas ,EZB and multiplexer circuit

                            PART ONE ANALOG MULTIPLEXING

Analog multiplexing is using only one ADC port and have more then 16 analog inputs and depending on analog ports needed will depend on how many digital ports are used to switch it

VERY simple circuit only one chip under $1 will post a schematic up in a day or 2 and part # of the chip

Its analog switch so it very fast ,not much coding is needed ,not like using 2 EZB and have to pass info back and forth using bluetooth or USB or wifi

Analog ports the EZB only has a few,and needed for analog sensors or other boards like battery monitor ,or current on digital there is more then twice as much

PART 2 will be digital multiplexing PART 3 will be using I2C bus


ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

United Kingdom
#41  

@robotmaker, I have not said you are wrong. Please re-read my posts.

#42  

YOU are right and i dont need to read it again,i understand all posts you did,so may be a bad choice of words. YOU JUST disagree wih me try to understand that RICH

Just nobody did any tests on using the board so they cant say much about the design unless they build and test it.

i have about 20 ezb boards can very easy use for my projects instead of the digital multiplex circuit

BUt main item every board you use it raises the current much higher,but on using the CMOS chip current is super low.

PLUS like DJ its slower the EZB because of the commucation speed.

United Kingdom
#43  

Not at all. I have not disagreed with you either other than you saying it needs to be made before anyone knows if it will work.

What I have done is exposed the limitations on this design, explained them and made you and other members aware of them so that you and they can made an informed decision on whether or not to use the circuit or choose to use another EZ-B.

I have said that this circuit may be of benefit in some applications, I do not believe it to be a complete waste of time and effort. However the limitations must be totally understood so that the users are not left unsatisfied with the results or worse, end up physically damaging their projects due to those limitations.

For instance, I can see this circuit being useful to control the different coloured LEDs inside my robots brain, an action which would require at least 5 digital ports for the basic plan, more on my more advanced plans. However it would pose problematic if I wanted to use this circuit to control the pan/tilt bracket on my robots neck, to control his arms, to control the H-Bridge, to control the ping sensor or sweep servo.

As I have attempted to make perfectly clear, my posts have not been to discredit or dispute any design but are purely to inform the forum users of the limitations which would be present in this design.

#44  

THats what i meen by the limitations i am also saying the same about using 2 EZB boards it has limitations too.

You have 16 leds you need to control ?

On servo's i dont think it will work,on sonars i think it will work because its used many times to control 16 of them,

I think the way is was done is 16 outputs used to get echo ,or send ping that received or send the ping is using 8 digital ports.

SO on the getping function you use the digital port on EZB like you said there is problem with that and on send signal use the digital port.

NOW i know others wont use 16 sonars ,maybe 8 ,but thats 16 lines ,so 8 on the multiplex circuit and 8 on the EZB.

DO YOU UNDERSTAND THIS.

AND total cost of ezb is not $60 but close to $75 or more depend on the country you live in

WOW re-edit on cost its $69 for ezb and to fla its $25.56 is the cheapest rate

United Kingdom
#45  

I cannot and will not explain any further when it is perfectly clear in previous posts.

Also check your logic and check your maths. 16 sonars, that's 16 x 2. 16 on the multiplexer and 16 on the EZ-B so as to avoid the limitations right? So it takes 4 control ports and 1 pass through port for the multiplexer for 16 devices. That's 5. Plus the 16 for the echo of the sonar, that's 21 ports used on a 20 port board.

#46  

Yes,but not saying to use 16 sonars ,and i guess you dont understand what i said aboout using half the ports on EZB and half on multiplex circuit.

I said nobody would use 16 sonars maybe 8 ,so only 3 address lines and 1 I/O and you save 4 ports and if you use all 16 ports the other 8 ports can be used to drive relay's or leds or ?

0-7 I/O is address is 1,2 and 4 0-15 I/O the address is 1,2,4 and 8 THEN the getping function wont be a problem using only 8 ports idea.

I am trying to explain the advantage of using the multiplex design over the EZB to me over $100 is a lot for second EZB in my robot ,plus as DJ said that speed is much less on EZB because of communcation and then high current draw.

So other need to know the disadvanges of using a second EZB too.

United Kingdom
#47  

Perhaps I mis-inerprited;

Quote:

I think the way is was done is 16 outputs used to get echo ,or send ping that received or send the ping is using 8 digital ports.

SO on the getping function you use the digital port on EZB like you said there is problem with that and on send signal use the digital port.

Quote:

NOW i know others wont use 16 sonars ,maybe 8 ,but thats 16 lines ,so 8 on the multiplex circuit and 8 on the EZB.

Has that been edited by the way? It started at 16, dropped to 8, back to 16 and ended at 8...;)

Also, DJ said

Quote:

If you were to add more ports to the EZ-B, you will sacrifice communication speed

That doesn't mean using multiple EZ-Bs, it means adding more ports to one EZ-B.

Please enlighten us on the disadvantages of using a second EZ-B, other than the cost.

#48  

OR i didnt explain it correctly and i meant 8 not 16 it takes 16 lines for 8 sonars ,8 pings and 8 echo, ping is the start pulse and echo is the receive in PWM I guess i didnt recheck my post wanted to get back and have my dessert at the party FOR EASTER.

I thought he meant you lose communication speed using 2 EZB witch you do.

Way a processor is made is that is has memory ,plus digital circuit ,timers and then uart communication circuit and clock circuits AND MORE before it gets to the digital port.

With a digital multiplex circuit is straight communication ,no bluetooth or uart or clocks or memory or digital circuits.

I dont think many knows how a processor really works and the circuits inside,coding and using is easy.

JUST follow the path on the processor that is use to see how slow it is and compare the path with multiplex chip.