Loading...
Pages: [1]   Go Down
Author Topic: How program the Mlx10407 or a similar IC  (Read 135 times)
0 Members and 1 Guest are viewing this topic.
Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello to all,does anyone know how program a mlx10407 to arduino uno??i have 2 aircore motors with 4 wires and i want to use this one because i dont want to spent 12 wires with the l293d
« Last Edit: May 02, 2013, 03:18:10 am by ros31 » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35624
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some links would be useful.
Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for reply...well yes this the data sheet for mlx10407  http://www.melexis.com/Asset/MLX10407-Datasheet-DownloadLink-4745.aspx   I am going to retrive data from x sim and sent them with arduino to the aircores
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35624
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got a binary file with no extension when I clicked that link. Thanks for the virus.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25613
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Look at the data sheet - fig 5. Timing diagram serial link. - shows you how you need to waggle the line up and down in order to feed serial data to it. It looks like you will have to bit bang this rather than use the SPI library.
How have you got it wired up?
Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wire the aircores like datasheet but i dont know were to connect the data wires to arduino and what code to use
Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got a binary file with no extension when I clicked that link. Thanks for the virus.
      I am sorry my friend but its not virus for me
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25613
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I wire the aircores like datasheet but i dont know were to connect the data wires to arduino and what code to use
Use the diagram shown in Fig 7. The uP is your arduino. You can use any pins you like, look at the direction of the arrow to see if you need it to be an input or output. Do not forget you need a 8MHz crystal as well.

Quote
and what code to use
You have to write that yourself.
Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the oscillator in 8MH ok,my problem is that i dont know how to start the code,i havent program ic like this one bofore,maybe a guide how to start?i have create 2 char to the x sim S for speed and R for rpm
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25613
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Look at this
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
part way down is code how to bit bang.
However it is not arduino code but is very close. For example SPIDELAY is delay and SETCLK() is a digital write HIGH to the pin you wired up as the clock.

Quote
my problem is that i dont know how to start the code,i havent program ic like this one bofore
Are you sure you are ready for this project? It is probably too advanced for you

Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the help my friend thank a lot,well in greece we say if you want to learn how to swim fall in to the deep,...
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25613
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
in greece we say if you want to learn how to swim fall in to the deep
Does that explain the Euro crisis.  smiley-lol
Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley no my friend the problem in europe is that some people(politics)they want to be rich!!and they have a way to blame us!!
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 278
Posts: 25613
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Very true. You have my symphithy on that one.
Logged

Pages: [1]   Go Up
Print
 
Jump to: