Welcome, Guest

TOPIC: Analog Input voltage from SmartBox

Analog Input voltage from SmartBox 6 years 6 months ago #445

  • Beginner
  • Beginner's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hi I m new to smartmotor. I am using class 5 motor and Smartbox. I would like to get analog input from smartbox. Can anybody give me some pointers to do that?

Thanks
The administrator has disabled public write access.

Re: Analog Input voltage from SmartBox 6 years 6 months ago #448

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The potentiometer on the SmartBox is connected to portD.
The following commands will store the voltage in variable "a" and report the value.
Note: A value of 4900 would be 4.9 volts.

a=INA(V1,3) Ra
The administrator has disabled public write access.
Moderators: hsummer, csearcy, swalters, mmeyers
Time to create page: 0.229 seconds
Powered by Kunena Forum