![]() It's amazing how low level it gets sometimes and then just totally skips over stuff. I followed the 'embedded-lab' guide which looks a little better than it actually is. Spent 9 hours yesterday (20:00 - 05:00am!) trying to get started. Here are some test and example programs, ready to compile with the libaries and write to flash: Here is a PWM controller project for a motor: Here is a water tank level sensor using ultrasonic rangefinder: Feel free to browse the code, and use whatever you like. It also has a support library for the STM8S003 W1209 thermostat, which has three buttons, a 3-digit display, a temperature probe, and a relay. ![]() The libraries have support for many input and output devices, such as keypads, LCD, and LED modules, binary/decimal conversion, PWM/servo control, ultrasonic rangefinding, UART. Most of it is for STM8S103 or STM8S105, but the STM8S003 is so close, they will work fine. I have a nice ecosystem of STM8 libraries, sample/example programs, and projects on github. The port will not be fun because we made a mistake and time will be lost in project completion.įor newbies, please do not go down the STM8 route until you have sufficient experience to properly analyze your needs (and the fun factor.I use the free SDCC (small device C compiler) and ST-LINK V2 and stm8flash to program the chips. But, the converse situation means we mischose the target processor or our requirements were not nailed-down firmly when we started with the STM8. Time permitting, porting a project over to an STM8 may be fun. Thinking about an under $2 development board, is it really a sin to not fully utilize the silicon? I think not. In the commercial space, the selection can be critical to profit margins. ![]() It does require some experience to intuitively know that the project code will not overrun chip resources. This usually distills into using the controller’s peripherals in total, or leaving little unused. Focus on knowing everything about your target unit.īut, variety has many advantages, one being using the correct controller for the correctly matched project. Unless “fun & education” are included, most hobbyists are better served by a limited inventory of microcontrollers. Even in 25 quantities, the price-break may not pay for shipping. ![]() The trick is to understand that economy-of-scale does not generally apply to the hobbyist/experimenter. In this regard, an STM8 with 1k RAM would be a lovely upgrade, especially with Arduino compatible cores, assuming the cost is lower than an STM32F1 :p ![]() I agree, the small size, low pin count, no external parts required (at least for simple operation), high software support (Tinys can run most arduino libraries) combined with the low cost is the niche that ATTiny is for me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |