tadejkkk
Posts: 19
Joined: Sun Jun 29, 2014 10:52 am

Making my own simple microcontroller

Sun Jun 29, 2014 10:53 am

Hello. I'm a student of electrical enginering and i'm trying to build my own simple microcontroller. I should have 22 GPIO pins and should be powerd and communicate over POE with Raspberry Pi who runs a MODBUS TCP/IP server. I'm fairly new to electronics
so i don't really know how to approach the problem. I don't want to complicate things and start from beginning and would like to know what what kind of simillar solutions were already done? The biggest problem seems to be POE. I found perfarduino whitch seems
to be a simple solution but i really have no clue how to set up POE. And thoughts?
Would be really grateful for any kind of help.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Making my own simple microcontroller

Sun Jun 29, 2014 3:05 pm

Check online for "PoE injectors" or "PoE splitters".


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

danjperron
Posts: 3508
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Making my own simple microcontroller

Mon Jun 30, 2014 5:03 pm

Do you really need the TCP/IP mode ?

Using the modbus serial RTU is way cheaper!

This is my post and you could change the cpu to get more I/O.

http://www.raspberrypi.org/forums/viewt ... 12#p538112

If you want to stick with the TCP/IP mode , you could use an arduino with a ethernet shield or with the WIZ550io Ethernet module.

The price will be around the same than a RPi but it will take less power and it will be more robust.

Or use a mbed NXP LPC1768.

Daniel

tadejkkk
Posts: 19
Joined: Sun Jun 29, 2014 10:52 am

Re: Making my own simple microcontroller

Wed Jul 02, 2014 10:17 am

I realy need TCP/IP because it's the goal of our project. The requirements are: The size sould be less than 60x40x12 mm, 24 I/O, and should be powered over ethernet and communicate with modbus TCP/IP. Something like that: https://www.pjrc.com/teensy/ plus the POE.

PiGraham
Posts: 3971
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Making my own simple microcontroller

Wed Jul 02, 2014 10:42 am

There are plenty of Ethernet chips and modules that handle to TCP/IP stack for you.

http://www.microchip.com/wwwproducts/De ... e=en022889

Micro and Ethernet all in one chip

http://www.microchip.com/wwwproducts/De ... e=en026439

danjperron
Posts: 3508
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Making my own simple microcontroller

Wed Jul 02, 2014 11:00 am

Yes there is a lot of ethernet chip!

But to start use a small cpu board, Arduino or Fubarino from chipkit with the I.C. you want for ethernet. This will speed up the process a lot since most of the libraries are there. Unless you are very good with one type of cpu.

I do have ethernet shields for the Arduino ( 2 types). One is very good and the other one ;--/ . I don't remember which one was better.

Once you have everything working , build your own board with all the I/O interface you need. Don't bother if it is a small quantity.


Daniel

PiGraham
Posts: 3971
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Making my own simple microcontroller

Wed Jul 02, 2014 11:41 am

It seems the objective is to develop a microcontroller board something like a Teensy, but with Ethernet and PoE.
The title suggests that using an off-the-shelf microcontroller board plus a "shield" is not "making my own".

danjperron
Posts: 3508
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Making my own simple microcontroller

Wed Jul 02, 2014 5:03 pm

Hi tadejkkk,

It is up to you !

Arduino or fubarino board from chipkit are good tool to progress. But you could use your own microcomputer.

I just gave you idea to speed up process because you had difficulty with the POE. And for me this mean that your electronic skill are maybe not enough to start from zero from microcomputer I.C. The atmega328 cpu is around $2 CAD so when everything is done it is simple to do your own board since you already test everything.

Daniel

Return to “Automation, sensing and robotics”