Skip to content
Benjamin Vernoux edited this page Feb 26, 2015 · 10 revisions

#HydraFW ADC (Analog to Digital Converter)

Input: 0 to 3.3V
Resolution: 12bits

This guide is updated towards firmware release HydraFW v0.5 Beta: HydraFW (HydraBus) v0.5-beta-0-gc0bc1f0 2015-02-11

##ADC configuration syntax description:

  • Usage: adc <adc1/tempsensor/vrefint/vbat> [period (nb ms)] [samples (nb sample)/continuous]
  • adc1 is mapped on PA1 pin
  • tempsensor Temperature sensor is mapped internally in MCU
  • vrefint Internal reference voltage is mapped internally in MCU
  • vbat VBAT voltage is mapped internally in MCU

Syntax:

  • adc1, tempsensor, vrefint or vbat to choose one or more ADC device

    • Return value in Volt
  • sample Number of samples to read

  • continuous Read continuously

###ADC example:

> adc adc1
ADC1
0.8050

> adc tempsensor
Temp
0.7978

> adc vrefint
VREF
1.2192

> adc vbat
VBAT
1.6512

> adc adc1 tempsensor vrefint vbat
ADC1    Temp    VREF    VBAT
0.6841  0.7873  1.2192  1.6512

> adc adc1 tempsensor vrefint vbat samples 5
ADC1    Temp    VREF    VBAT
0.6720  0.7873  1.2192  1.6512
0.7059  0.7873  1.2192  1.6504
0.7075  0.7873  1.2192  1.6512
0.7027  0.7873  1.2192  1.6504
0.6720  0.7889  1.2192  1.6512

How to Flash/Use HydraFW

How to Build/Flash/Use HydraFW

Developer Getting-Started with HydraBus and STM32CubeIDE

Hardware

Firmware (hydrafw) performances

Firmware (hydrafw) Application guides

Firmware (hydrafw) guides

How to Help

Clone this wiki locally