That feels a bit awkward since I want to be able to turn the segments on using the STM32 MCU. These eight pins, each turn a segment LED if you connect that pin to ground. Unfortunately I have no manufacturer information or model number of the display so it is hard to look up a datasheet.Įight pins are unconnected so far. The seven-segment display used here does not seem to require very much current at all to light up. The anode pins are located in the middle of the top and bottom row of 5 pins, that is pin 3 and pin 8. There are two anode pins and it seems to not matter at all which one I use, so I connect 3V via a 365 Ohm resistor to both of them. I hope I am not mixing up the anode and cathode words there but what it means is that I am connecting positive (+) 3V to the anode pins. This seven-segment display has a common anode and one cathode per segment LED. When I get my hand on some decoder chips I will revisit this setup. This approach is taken because I currently do not have any seven-segment decoder chip but still want to see if it will light up. The approach taken here will be to connect each of those pins to GPIO pins on the STM32F4-Discovery board as below. This particular seven-segment display has a decimal point and thus have eight input pins. This first one was not very tricky (but not without its caveats) it is a seven-segment display. I will try to figure out how they work and write down my findings. I have a number of different sensors, displays and servos just sitting around. I would love to hear your feedback, help, constructive criticism and tips, that would be awesome! Always do your own research and read datasheets. So please do not take what I write as an experts guide. This is why I share my naive experimentation into the field of electronics. I enjoy learning and would like to do that together with others. I am not an electrical engineer or an expert in electronics in any way. Home Blog Videos Research LispBM About Privacy Policy Bo Joel Svenssonīlog (dot) joel (dot) svensson (at) gmail (dot) comĬontrolling a Seven-Segment Display from an STM32 running ChibiOsįirst I think a bit of disclaimer may be in place.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |