JochiSt / OpenFlowMeter

Measuring Flow
GNU General Public License v3.0
6 stars 0 forks source link

commissioning of 1st board #2

Closed JochiSt closed 1 year ago

JochiSt commented 2 years ago

Logbook of the commissioning of the first board

JochiSt commented 2 years ago

LEDs

The LEDs work as expected.

They are turned on via:

  HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_RESET);

and switched off by:

  HAL_GPIO_WritePin(LED4_GPIO_Port, LED4_Pin, GPIO_PIN_SET);
JochiSt commented 2 years ago

LEDs

The LEDs are visible, but rather dim. So decreasing the resistance from 2k2 to 1k2 might be a good idea in order to increase visibility.

D1 = red D2 = yellow D3 = yellow D4 = green

JochiSt commented 2 years ago

USART

The USART is working at 115200.

JochiSt commented 2 years ago

CAN Bus

CAN Bus working, both RX and TX.

Note:
for RX the CAN filter must be set. There are two FIFOs, which can be handled via an interrupt.

JochiSt commented 2 years ago

ADC

Getting the timer into operation.
Channel 4: Output Compare No Output Mode: Toggle on Output

ADC is triggered on Timer 4 Capture Compare 4

Quite helpful:

JochiSt commented 2 years ago

PWM

Works 512 = 1.65V 1024 = 3.3V

JochiSt commented 2 years ago

ADC is now running continuously, and gives about 16 000 samples per second of all inputs.

JochiSt commented 1 year ago

First board was quite successful, some issues found, which are going to be fixed in revision 2.0. See #11 for commissioning of the new revision.