Skip to content

Bootcamp: Adityya Kaushal#268

Closed
Adityya-K wants to merge 2 commits intoUWARG:masterfrom
Adityya-K:master
Closed

Bootcamp: Adityya Kaushal#268
Adityya-K wants to merge 2 commits intoUWARG:masterfrom
Adityya-K:master

Conversation

@Adityya-K
Copy link
Copy Markdown

@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]);
Copy link
Copy Markdown

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

Comment thread nucleof072rb/Core/Src/main.c Outdated
transmit_bytes[0] = 0x01;

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

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

@dechair3 dechair3 closed this Jan 31, 2026
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