Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Netherlands
Asked — Edited

Map() Feature

Hey DJ,

Is there a map feature in EZ-Builder?

I have a voltage divider setup to measure the battery voltage and i would like to show the voltage on my Omnibot's LCD.

Now the value is 0-10v in stead of 5v so i would like to map the ADC value from 0-255(is 255 the max value of the EZ-B?) to 0-10v.


ARC Pro

Upgrade to ARC Pro

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

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
PRO
Synthiam
#1  
The ez-b cannot accept any more than 5v. You can build a very simple voltage divider with a resistor. There is a post on here somewhere about doing that. If you give the adc more than 5v, it'll pop the chip.

There are details in the manual:)
Netherlands
#2  
Look at the 3rd paragraph,

I AM using a 1/1 voltage divider to measure up to 10v,

But then if its 8 volts, the EZB reports 4v. Now im looking for a script command to Map the values and send them to my LCD over serial.