Drive Stepper Motor Using USB

We all know how complicated it’s to run stepper motor using a microcontroller without any use of external libraries. This project allows you to control a stepper motor using a simple USB interface. They have use PIC18F4550 microcontroller which has an in built USB (USB 2.0) functionality which allows to connect with any computer with a USB port and Windows OS. The USB is made to run at full speed of 12Mbps, however it can also be run in low speed of just 1.2Mbps. The whole setup is very cheap to build. The only thing that would add cost is the stepper motor which itself will be very costly then the entire project setup.The stepper motor used here is a 5 wire Stepper motor (M35SP-8) which is going to be operated by an application written in C#, (visual studio) which will communicate with the microcontroller board via USB. Also, you can use any other stepper motor but some numeric value has to be changed in the code since different motor will have different step size. The entire code including the… Continue reading

PIC18F USB can be easy

USB interface in embedded applications become a norm these days and there are many ways of doing this. Weather you can use a distinct USB to TTL converter chip or use microcontroller with or without USB interface. Using microcontroller chip with USB interface requires very simple hardware, so this makes very attractive solution to use. In this example there is a PIC18F4550 microcontroller used which already has an USB interface, so no other special circuitry is needed to drive USB successfully. By using HID standard you even don’t need any special drivers as Windows or Linux has already built-in these to get started immediately. In this nice guide you will be able to build a simple application where you can control LED from PC and read press buttons on PC screen. It may sound that writing microcontroller firmware with USB support is difficult, but you don’t need to worry much as Microchip already has done this for you. You can download ready to use USB stack that can be included in your project. Once you get USB up and running,… Continue reading