Micromouse book
Categories
Recent Comments
Meta
Popular Posts
- Simple ADC use on the STM32 (3,934)
- STM32 Arm-Cortex bootloader (2,657)
- STM32 USART basics (2,535)
- All Japan Micromouse 2011 – finals (1,970)
- STM32F4 – the first taste of speed (1,615)
- Micromouse Book (1,532)
- Nokia 3410 LCD on the STM32 (1,264)
- CodeSourcery GNU Toolchain for the ARM on a Mac (1,097)
- Bit Banding in the STM32 (972)
- ARM STM32 JTAG (921)
Blogroll
-
Upcoming Events
-
Feb6Mon
-
Apr14Sat
-
Tag Archives: microchip
Microchip MPLAB moving to NetBeans
It seems that the next big thing for MPLAB, Microchip’s IDE, is going to be a move to NetBeans. MPLAB is, mostly, a pretty good place to develop embedded software for the Microchip PIC processors. All the variants from the venerable 16F84 up to the latest 32-bitdevices are catered for. Editing, programming and debugging can all be done from one handy-dandy application. Of course, it has its limitations…
Chief among these, for me, is that it will only run on Windows and I mostly use a mac at home. In fact, almost the only thing I need a windows PC for at home is working on my micromoice that use the dsPIC processor. Although I shall soon switch all new development to the STM32, there will remain a need to code for the dsPIC on the older mice.
Microchip have recognised that there is more to the world than Windows and so they are going to be releasing the next MPLAB generation using the NetBeans IDE. NetBeans is a Java based IDE capable of many tasks. Think of it as like clipse but much, much nicer – and smaller.
Don’t let the Java thing put you off either. Gone are the days when Java applications were automatically big and slow with wierd user interfaces. NetBeans will run on windows, OSX and Linux and runs pretty well identically on all platforms. I already use it as the platform of choice when I have code to edit. In fact, at home, I have the mouse code set up to be edited on the desktop Mac using NetBeans and only switch over to the windows laptop to compile and download to the target.
For my part, I can’t wait for the NetBeans version of MPLAB to become available.
Read more here:
http://netbeans.dzone.com/nb-microchip
New line follower robot
Line followers are a perennial favourite of the small robot builder. It is not hard to make something that will bumble about and follow a line marked out on the floor. the technology can be very simple but the same basic idea is used in sophisticated robots on factory floors. The tricky part is in making the line-follower fast and smooth in its response. Whether or not I can do that remains to be seen but I am going to have a go …
There has been a bit of discussion lately about a simple line-following competition to replace a couple of the schools contests at the micromouse events. You can see the proposal on the forum:
http://www.micromouseonline.com/forum/viewtopic.php?f=3&t=281
So that there is at least one entry, I agreed to build a follower in time for the November RoboTic event in Birmingham (http://www.tic.ac.uk/micromouse/ROBOtic08.asp).
Right, the question is, what to make it out of. I looked at various options for motors and was about to order some small gearmotors. These came in at about £12 each and would need wheels making and tyres fitting.
For the controller, I chose aPIC18F252 because I happened to have three of them spare. the newer 18F2520 might be a better choice now. the PIC is handy because development tools in the form of MPLAB, the PicKit2 and a C compiler are easy to get. The software is free and the PicKit2 can be had for very little cost considering its versatility.
Sensors are the Vishay TCRT5000 IR reflective sensor available from Farnell among others. With an eye to future development, I chose to put five sensors in the beast. This should give me better than needed resolution and will allow a ‘proper’ PD controller rather than the usual on-off type of control seen when only using two detectors. Of course, various simpler digital control schemes can be tried anyway with these sensors. I was specifically looking for versatility so that I can experiment with a range of strategies.
To drive the motors, I was going to use the ubiquitous L293D. However, these are not terribly cheap now and I have no obvious requirement to drive the motors in any direction other than forwards. After a poke about in the parts trays, I found a collection of TIP122 Darlington transistors. These will handle plenty of current. To be on the safe side, I added flyback diodes across the motors although I would expect the TIP122 to survive anything these little motors can generate. We will soon see.
With all the parts decided, it is time to get building.
Add to Google