GitHub Digital Lab

Fox Red Labs / Builds / Motor control, power and sensing

Read a knob or a voltage

A voltage read by the chip's converter and printed as a number.

Easy20 min

Board only. No build recorded.

No recorded steps

Some pieces of it have run. There are no recorded steps for this project, so this page does not give any.

What exists:

  • LP-MSPM0G3507: Inside the chip only: supply read 3.29 V; no knob wired
  • LP-MSPM0L1306: Inside the chip only: supply read 3.31 V; no knob wired
  • LAUNCHXL-F2800137: TI's out-of-box demo prints an ADC reading; the pin was left floating, no knob wired

You would need the board, plus ELEGOO jumper wires.

Errors and fixes: LP-MSPM0G3507, LP-MSPM0L1306, LAUNCHXL-F2800137.

What to build next

Read a temperature sensorA temperature printed every second
Read six sensors on one plug-in boardHumidity, temperature, light and magnetic field printed once a second, with what each should read
How fast a chip reacts to a signalHow many cycles from a signal to its handler, and one motor-control step timed

Every build

Get the code

Ran in part. Inside the chip only: supply read 3.29 V; no knob wired

Start it

Paste this in a terminal. It hands off to an AI assistant with this board's notes. There are no written steps for this board yet.

./start.sh mspm0g3507 read-a-voltage --assistant claudegit clone --depth 1 --filter=blob:none https://github.com/Fox-Red-Labs/fox-red-labs.git && cd fox-red-labs ./start.sh mspm0g3507 read-a-voltage --assistant claude
Not Claude Code? Copy this prompt instead.
Clone https://github.com/Fox-Red-Labs/fox-red-labs and read mspm0g3507/AGENTS.md first. Then run Read a knob or a voltage on my LP-MSPM0G3507. Tell me when to plug in the board and what you saw at each step.
Only the code for this board
git sparse-checkout set mspm0g3507/mcu-benchgit clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git cd fox-red-labs git sparse-checkout set mspm0g3507/mcu-bench
Everything for this build

Adds the board's own folder (its notebook, fixes and assistant notes) and the shared code this build draws on. Notes for an AI assistant: mspm0g3507/AGENTS.md.

git sparse-checkout set mspm0g3507git clone --depth 1 --filter=blob:none --sparse https://github.com/Fox-Red-Labs/fox-red-labs.git cd fox-red-labs git sparse-checkout set mspm0g3507
Or take the whole repository
git clone https://github.com/Fox-Red-Labs/fox-red-labs.git
Reports from others, and the report forms

Clone the repository and open the board's folder below. AGENTS.md is a plain text file of notes for AI coding assistants, and llms.txt at the root indexes the site for one.

git clone https://github.com/Fox-Red-Labs/fox-red-labs.git

Code is BSD-3-Clause, writing is CC BY 4.0; third-party folders keep their own licenses.

Built it? Tell us

Built this, or got stuck? Report it on GitHub with a few short answers. Your report shows here in your words, marked as yours. A failure that repeats on the bench gets its fix here.

Evidence and limitsReads the chip's own supply (3.29 V); no knob wired. Results, sources, timing and limits.

Which boards ran it

  • Could work LP-MSPM0G3507: Inside the chip only: supply read 3.29 V; no knob wired
  • Could work LP-MSPM0L1306: Inside the chip only: supply read 3.31 V; no knob wired
  • Could work LAUNCHXL-F2800137: TI's out-of-box demo prints an ADC reading; the pin was left floating, no knob wired

Source files

  • README (LAUNCHXL-F2800137): setup and build steps

Wiring

LP-MSPM0G3507 from above with one wire from J3 pin 30 to J1 pin 2

Pins are drawn on TI's board drawing; the source is in the repo next to the README. Open full size

Loop 1: the chip's voltage maker into its own voltmeter

You need

  • LP-MSPM0G3507 LaunchPad development kit: TI's 80 MHz Arm Cortex-M0+ board with 128 kB flash and 32 kB RAM, a built-in debugger, three buttons, two LEDs (one RGB) and light and temperature sensors.
  • ELEGOO jumper wires (120-piece pack): Male and female breadboard wires for connecting anything to anything.

Wiring

  1. Unplug USB
  2. One wire from J3 pin 30 (PA15, the DAC output) to J1 pin 2 (PA25, an ADC input). J1 pin 2 sits under the square 3V3 pad
  3. No jumpers move

What was measured

  • Gain error 0.34%, gain 0.99656, across 257 DAC steps, 16 ADC reads each, both against the 3.3 V supply
  • The ADC reads 0 to 13.5 codes low, averaging 7.2 codes or 0 to 11 mV; noise 1.56 codes, about 9.6 effective bits

Versions: MSPM0 SDK 2.11.00.07, TI Arm Clang 5.1.1; measured 2026-10-06.

Next: The same loop through the op-amp, and a second ADC channel.

How to repeat it: Jumper wires on the LP-MSPM0G3507: three loops to start. Errors and fixes: FAQ. Numbers from Loop tests: the G3507 measuring itself through two jumper wires.