Skip to content

Conversation

@Adityya-K
Copy link

@Adityya-K Adityya-K commented Jan 9, 2026

Purpose

Completed the bootcamp

Possible things wrong

  • Used differential mode for ADC reading
  • Committed all HAL files

Note

I did use the latest IDE for STM32 against the advice of the instructions just because I wanted to learn it (sorry if that causes issues)


// Format received bytes
// Append last two bytes and then mask out the last 10
uint16_t data = 0b1111111111 & ((recieve_bytes[2] << 8) | recieve_bytes[3]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an interesting line of code

transmit_bytes[0] = 0x01;

// Input channel config, first bit is 0 for differential
transmit_bytes[1] = (0x00 | (input_channel << 4));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that this should be in differential mode? I would reread the introduction to see how many signals are going into the adc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants