Should I Use A Microcontroller Or A Microcomputer?

  • Thread starter Thread starter VarietyBook
  • Start date Start date
  • Tags Tags
    Microcontroller
AI Thread Summary
For a project involving a toy radio-controlled car with a rotating electronic rangefinder, using a microcontroller is recommended over a Zilog Z80 due to its modular design and suitability for embedded control tasks. Microcontrollers, such as Microchip's PIC and dsPIC, provide essential features like internal EEPROM, multiple hardware timers, and easy integration with peripherals, which are crucial for managing servos and motors effectively. The discussion highlights the importance of selecting a microcontroller with adequate timer interrupts to simplify software development and debugging. After considering the advice, the team has opted for Texas Instruments' Launchpad boards, which offer an all-in-one solution for their project needs. Overall, microcontrollers are favored for their speed, size, and ease of use in robotics applications.
VarietyBook
Messages
9
Reaction score
0
I am working on, with some friends, a small project. It is to take a toy radio-controlled car and put a rotating electronic rangefinder on it in order to have it drive itself around SIMPLE obstacles. We all have a slight background in electronics (not much) and lots of experience in computer programming. We are currently torn between using a Zilog Z80, with required peripherals, or a microcontroller. The car is about 8"x16", so size really isn't a problem. It runs from two BLDC motors. We have decided on using two rangefinders, two color sensors, various servo motors, and other data-gathering peripherals. The rangefinders will be building a simplistic map of the car's surroundings in order to navigate them.

Do you recommend us to use a microcontroller, build a full system with the Z80, choose a different option, or do something else with our time?
 
Engineering news on Phys.org
If you're mainly programmers and not EE types with lots of electronic chip level building experience the best thing is to have a system designed for your type of application that allows for modular hardware. A Z80 is a good general purpose chip that won't have much of the type of internal hardware needed for embedded control. Yes, it's possible to add the needed hardware but it's much easier to get the job done with a micro-controller designed for reading encoders, controlling motors , sending data with SPI/I2C/RS-232 ,converting analog to digital and back with one or two chips on a module.
 
I switched from Z80 to PIC microcontrollers long ago.
Everything you need to do can be done with a microcontroller.
Consider for example the Microchip PIC and dsPIC 16-bit microcontrollers.
Once you have written a real time operating system it will be trivial to program your system.
The RTOS must handle all interrupts, the clock and schedule future tasks.
My original minimal RTOS for PIC16F84 assembled to 32 words.
It made it possible to implement new projects in assembly language in less than an hour.
If the workload gets too much for one processor then you can distribute the workload across several slave microcontrollers.
 
As much as I love the Z80, it is a bit dated now. The newer microcontrollers are far faster and smaller. Most include internal EEPROMs and have inexpensive development boards available with prototyping areas on them. You can get a complete development system (including a dev board) for under $100.
 
Thank you, everybody. After reading your posts, we have decided to go with something that comes all-in-one, in this case Texas Instruments's Launchpad boards that come with everything. Once again, thank you all for pointing us in the right direction.
 
Last edited:
You mentioned that you would have several servos. I have a hint for you. Do some digging and make sure that your chip has enough hardware timer interrupts to support all the servos and motors. It's really easy to use one timer interrupt to control one servo or motor. Controlling many servos and motors with one timer is a pain and it's difficult to debug the software. You'll see what I mean when you get into writing the software. More timers is more better for more RC projects.

Some chips even offer multiple PWM's that are easy to configure as motor and servo drivers.

For PIC's you can find out what peripherals and interrupts are available in PIC's product selection guide. I would recommend finding something similar for the ARM's in the launchpads and putting some thought into what kind of interrupts and peripherals you want.
 
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
Back
Top