Page 1 of 29 1234567891011 ... LastLast
Results 1 to 10 of 284

Thread: Everything You need to know about your M4 ATX

  1. #1
    Variable Bitrate Fox_Mulder's Avatar
    Join Date
    Apr 2004
    Location
    Melbourne, Australia The Truth Is Out There
    Posts
    319

    Everything You need to know about your M4 ATX

    Ok this thread is like others of it's nature (ie FAQ type responses not for troubleshooting)

    How do I connect my M4 to the USB Port on my computer?

    You need a 4 core cable with header connections on either end.
    Header connectors look like this: (image from melbpc.org.au)


    Inside the manual for the M4 the pinout for the usb connector is incorrect,
    the correct pinout is shown below:






    Connect 1 end of the 4 pin cable to an onboard motherboard USB header, and the other to the correct pins on J8 shown above.

    Or another way that this could be achieved i doing the following:
    Parts:
    2x 10 pin female IDC connectors
    2 lengths of 10 core flat cable
    1 pin header connector
    1 USB Type A socket.

    Attach one of the 10 pin IDC connectors to one end of the 10 core cable, like this:



    This will go to J8 on the M4 ATX.

    Attach the other 10 pin IDC connnector to the other length of 10 core cable you have.
    This will attach to the motherboard usb header.

    On the cable that attaches to your M4 ATX, attach the 2 pin header on pins 7 & 8. This will go to the "on" pins on your motherboard.

    Then attach Pins 2-5 on this cable to the other cable with a 10 pin IDC connector according to the pinout of the motherboard usb header. As most motherboard USB headers support 2 USB ports, I attached the Type A USB socket to this cable to make use of this so I didn't waste a usb port.

    Here are pictures of this:






    The M4 should be recognised as a HID device in windows. Mini-bos has yet to release software that will allow us to interact with the M4 via USB.


    My M4 doesn't follow the timing diagram in the manual, rather it always takes 1min/30secs to issue the shutdown pulse, regardless of the dipswitches. It follows the timing diagram if the ignition goes off/on/off.

    This is a known bug in version 1.0 of the firmware. The fix is detailed below.

    How do I reprogram my M4 ATX?

    This requires a bit of soldering and electrical know how, if in doubt just send it back to mini-box for them to upgrade the firmware.

    Things you need:
    New Firmware (v1.1 attached to this post)
    WinPic here

    an ICSP (In circuit serial programmer) for the 18F2450 microcontroller, if one of these is not available you will have to build one.

    Parts to build an ICSP:
    Q1,Q2 2N3904 NPN Transistors
    R1 1.5k Ohm Resistor
    R2 10k Ohm Resistor
    R3 100 Ohm Resistor
    D1,D2,D6,D7 1N4148 Diodes
    D3 5mm LED
    D4 6.2v Zener Diode
    D5 5.1v Zener Diode
    C1,C4 Capacitor in the range of 22->100pF
    C2 100uF 16v Capacitor
    C3 22uF 6.3v Capacitor
    DB9F PCB Mount Connector
    5 pin IDC Connector
    5 core cable

    Schematic is shown below: (original schematic from obddiag.net, modified to fit the M4 ATX)



    Build the schematic
    Attach unit to a free serial port on your computer
    Make sure the M4 is connected to nothing, and connect the programmer to the M4.
    To do this locate the header J5. Pin 1 on J5 is closest to the the dip switches (circled):



    Open WinPic
    Click the Interface Tab
    Select "JDM2 for serial port" under "Device type", select your com port and click "Initialize !"



    Click the Device Tab
    Select 18F2450 under "Part"



    Click File then open and select the new firmware that is attached to ths post.
    Click open and then click the "Code" tab. It should look like this:



    Then all you do is click the button with the red arrow pointing at the microchip (on the rigt hand side of the floppy disk icon) to program the new firmware on.

    Disconnect M4 from the programmer and you are done!

    NOTE:
    Winpic will fail on verification. I'm not too sure what impact this has on the programming itself, however my M4 works fine after loading the new firmware.
    The reason is explained from obddiag.net
    "Winpic doesn't check the configuration word properly, as the devices have user-configurable memory space from 300000h-30000Dh. Two config registers are missing, namely CONFIG3L(300004h) and CONFIG4H(300007h). WinPic is trying to program it as contiguous memory block and failing on verification."
    Attached Files Attached Files
    Fox Mulder
    2004 Toyota MR2
    Intel Dual Core 2.0Ghz 1Gb DDR2 160GB SATA2 M4ATX Xenarc 700TSV TS BU353 DiNovo Mini Car2PC ODBII Bluetooth HF 16x2 Character LCD

  2. #2
    Newbie jimmler's Avatar
    Join Date
    Jan 2008
    Location
    Cal. Central Coast
    Posts
    36
    Great work, Fox! I assume when you say the M4 is connected to nothing, you mean absolutely nothing, not powered up with 12v, etc.?
    -Jim
    Nipomo, CA

  3. #3
    Variable Bitrate Fox_Mulder's Avatar
    Join Date
    Apr 2004
    Location
    Melbourne, Australia The Truth Is Out There
    Posts
    319
    Yep thats right, absolutely nothing. No 12v, no ATX (except of course the ICSP programmer!)
    Fox Mulder
    2004 Toyota MR2
    Intel Dual Core 2.0Ghz 1Gb DDR2 160GB SATA2 M4ATX Xenarc 700TSV TS BU353 DiNovo Mini Car2PC ODBII Bluetooth HF 16x2 Character LCD

  4. #4
    Newbie GhostRiderDad's Avatar
    Join Date
    Apr 2008
    Posts
    42
    Fox,

    Excuse me for sounding ignorant, but what is a "4 core cable with header connections on either end" and where does one get one? I've tried to look for a 10-pin IDC connector and cable and have yet to find one I could use.

    Does anyone know the answer to this?

  5. #5
    Variable Bitrate Fox_Mulder's Avatar
    Join Date
    Apr 2004
    Location
    Melbourne, Australia The Truth Is Out There
    Posts
    319
    4 core cable is just a cable with 4 insulated wires inside, The header connectors are those thin black connectors. I've edited the first post showing you how I made my cable, and what the header connectors look like. I couldn't find them either and thats why I used 10 pin IDC connectors they fit perfectly.
    Fox Mulder
    2004 Toyota MR2
    Intel Dual Core 2.0Ghz 1Gb DDR2 160GB SATA2 M4ATX Xenarc 700TSV TS BU353 DiNovo Mini Car2PC ODBII Bluetooth HF 16x2 Character LCD

  6. #6
    Constant Bitrate kibble's Avatar
    Join Date
    May 2008
    Posts
    186
    Hello, I'm new to the forum, as you can tell by my first post.. LOL

    Great instructions you got here!

    Anyways, I had purchased the M4-ATX power supply and it power up my pc just fine, but I believe I have the v1.0 board with the timing issues. I saw fox's thread (this one) about how to update the thing and I even built myself the JDM2 programmer he showed on the schematic. I had to install PortTalk on my pc because I got an error first time I tried to run winpic that the program couldn't communicate with the driver.

    So anyways, long story short, I followed your instructions, Fox, and attempted to update the firmware. It starts to do the programming, which only takes a few seconds, then it says verifying for a few seconds and then it says "programming failed". Is this what you meant by the "verification fails"? Is it supposed to take longer than a few seconds on each process?

    I then try plugging the USB into my PC and I go to look at the hardware properties and I believe it's still saying that it's got V1.0. According to mini-box you can check the version this way. I don't think It's getting programmed at all.

    Another thing that doesn't work is the settings reset. According to the instructions for the m4, if you jump j1 and apply power, the led on the board is supposed to blink rapidly to show that it's reset to the defaults. Mine does not do that.

    Any suggestions about what I can do to get the thing programmed properly? I've tried many different things and I've checked, double checked, triple checked the programmer I built to make sure that I didn't mess up somewhere. I've even tried it on different pc's but no luck.

    Thanks for any help anyone can provide.

  7. #7
    Variable Bitrate Fox_Mulder's Avatar
    Join Date
    Apr 2004
    Location
    Melbourne, Australia The Truth Is Out There
    Posts
    319
    The LED binks so fast you dont actually see it blink lol but the settings are getting reset. You should see the LED come on for a second and fade out when the jumper or power is removed.

    Do you still have the timing issues after uploading the new firmware?

    Yep it will say programming failed and it might or might not have a note saying it failed on verification - cant remember.

    You can try programming it with a different ICSP if you have access to one, but I did it according to the method in the first post and it fixed the timing issues for me.

    I havent checked the version in the hardware properties on my M4, will do that tomorrow.
    Fox Mulder
    2004 Toyota MR2
    Intel Dual Core 2.0Ghz 1Gb DDR2 160GB SATA2 M4ATX Xenarc 700TSV TS BU353 DiNovo Mini Car2PC ODBII Bluetooth HF 16x2 Character LCD

  8. #8
    Constant Bitrate kibble's Avatar
    Join Date
    May 2008
    Posts
    186
    Well, I haven't really done much extensive testing of the timing after attempting to program it, but I could do that with a power supply tester that I have instead of putting everything back together, I'll connect the thing to my oscilloscope and check for the pulse and all to see if it's working as it should.

    I thought when they said it would blink that you'd be able to see something more visual than just a quick on/off and that's it.

    The biggest timing issue I have with the power supply is that I'm using an intel board and for some reason, they feel the need to completely turn on the power supply for a second and then turn it off after the 5VSB turns on. Well, what happens is that the m4 sends the "on" pulse right before this procedure finishes and the mobo misses it and somehow the m4 latches all the rails in the "on" state, so even though the mobo isn't telling the m4 to be on, all the rails are on. When it's like this, I can't do anything. I found a work-around but it involves shorting out the ps-on line to ground for a second and then the m4 shuts off. Once the m4 is off again, I have to remove the ignition signal and then re apply it before it goes into hard off and THEN the mobo will power on. I was hoping maybe with the new timings this wouldn't be an issue, but I'm not holding my breath.

    If this doesn't make sense, I'd have to make a timings chart or show a video so it makes more sense. I know it sounds very confusing.

    If I can't get this solved, I'll have to resort to making an extra circuit that waits for a few seconds longer to turn on the mobo. It's very frustrating because I have to completely disassemble the pc to get to the power supply. I haven't even mounted it in my car yet because I haven't gotten this to work.

    Oh, one more thing. On the changelog on mini-box is says that:

    04/15/2008 Removed C53 (adjustment to the 5V rail rise time)

    Do you happen to know what exactly it did to the rise time? Did they completely remove it or change the value to something else?

  9. #9
    Constant Bitrate kibble's Avatar
    Join Date
    May 2008
    Posts
    186
    Quote Originally Posted by Fox_Mulder View Post
    Yep it will say programming failed and it might or might not have a note saying it failed on verification - cant remember.

    You can try programming it with a different ICSP if you have access to one, but I did it according to the method in the first post and it fixed the timing issues for me.

    I havent checked the version in the hardware properties on my M4, will do that tomorrow.
    \

    Well, apparently the ICSP I made worked ok. I downloaded that little application from mini-box and it's saying that I have firmware 1.1. Still have the timing issue, which is related more to the mobo than anything else, but I found a work around for the time being. I'll be making a separate circuit board to help out with this issue later on.

    Thanks again for the schematic fox.

  10. #10
    Variable Bitrate
    Join Date
    Dec 2007
    Location
    Reading, PA
    Posts
    235
    Quote Originally Posted by kibble View Post
    \

    Well, apparently the ICSP I made worked ok. I downloaded that little application from mini-box and it's saying that I have firmware 1.1. Still have the timing issue, which is related more to the mobo than anything else, but I found a work around for the time being. I'll be making a separate circuit board to help out with this issue later on.

    Thanks again for the schematic fox.
    What exactly is your timing issue?

    lol...perhaps if I read up, I would see it. You have the same issue I had. Laci @ Minibox gave me an app to change parameters of the power supply. I changed the delay from 500ms to 1000ms so the motherboard catches the first pulse.

    Send me an email. [email protected]

Page 1 of 29 1234567891011 ... LastLast

Similar Threads

  1. M4 ATX USB connection
    By Arby in forum M4-ATX
    Replies: 24
    Last Post: 08-10-2009, 09:24 PM
  2. M4 ATX Turn On Problem
    By Fox_Mulder in forum Power Supplies
    Replies: 26
    Last Post: 12-31-2008, 07:43 AM
  3. miniITX power supply for ATX motherboard?
    By uldics in forum Power Supplies
    Replies: 4
    Last Post: 09-26-2007, 12:17 PM
  4. Replies: 13
    Last Post: 07-19-2007, 01:57 PM
  5. morex 80wpsu and reg ATX cable dilema!!
    By surfy in forum Power Supplies
    Replies: 1
    Last Post: 08-16-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •