3 ms·
If you mean embedded systems, this is what I would do when working with a new microcontroller: 1. Make a LED blink - the Hello World of embedded. 2. Output a
by Cyph0n 10y ago
If you mean embedded systems, this is what I would do when working with a new microcontroller:
1. Make a LED blink - the Hello World of embedded.
2. Output a PWM signal from a pin to control a motor or to a speaker output.
3. Read an analog signal using the onboard ADC. A temperature or luminosity sensor is a good start.
4. Write a light OS that can execute multiple tasks simultaneously - take user input, read analog sensor values, perform a calculation, keep track of time, etc. This will need all of the above + interrupt handling.
- k__ 10y agoNice thanks :D I already imagined that the hello world of embedded is a blinking LED , haha. So these things (PWM, ADC) are "standard" to all embedded systems?
- raverbashing 10y ago> So these things (PWM, ADC) are "standard" to all embedded systems? Not really. PWM is more common (and "can" be done in SW or using other tricks if needed)
- Cyph0n 10y agoThe well-known microcontrollers do have both built-in - Arduino and MSP430 are two of the popular ones.
- iheartmemcache 10y agoI am of the firm belief that Arduino's are great to get those who aren't already motivated into learning EE/CE. Seeing a responsive blinking LED or whatnot is great to get people to the 'oh man, how does this work?! I want to learn more!!'. You're already at that phase. You presumably have a baseline of CS knowledge. Do it the 'right' way, and use a PIC or an AVR. (I don't care which, no holy wars, avr fans ;)) This[1] is a great place to start. I keep on meaning to write a 'hardware for CS guys' guide, that'll suffice for now. [1] http://umassamherstm5.org/tech-tutorials/pic32-tutorials/pic32mx220-tutorials http://umassamherstm5.org/tech-tutorials/pic32-tutorials/pic...
- k__ 10y agoA friend told me PIC and AVR have different purposes. AVR for controlling and PIC for computing.