Skip to main content
Associate
December 20, 2023
Question

Buttons for sending Can Frame

  • December 20, 2023
  • 1 reply
  • 856 views

Hello . I need to send 6 different 8-bit frames via Can to an external device using buttons. I will connect either 6 buttons to the GPIO inputs to stm32f407. 1 frame 8 bit. How to do it. Could someone help me with this?

 

 It's about adding buttons to the code and teeth and configuration with can.. can already works.

 

 

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 20, 2023

Find the pins you need on the board, you don't specify any details on the board. Configure as GPIO inputs, pull-up as necessary.

Use GPIO + EXTI to get interrupts, or scan in 1 KHz tick. Perhaps debounce, and flag message(s) for transmission.

Perhaps use a key pad, or one connecting via I2C.

Or boards based on the TM1638 chip?   https://pmdway.com/products/tm1638-numeric-display-led-input-board

Discuss with the person who set the assignment.

 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..