Shop OBEX P1 Docs P2 Docs Learn Events
CANbus with the SX-28 - PC interface — Parallax Forums

CANbus with the SX-28 - PC interface

LoopyBytelooseLoopyByteloose Posts: 12,537
edited 2006-12-15 10:44 in Robotics
Well, I previously posted my CANbus node with the BasicStamp.

But I needed a Master node that would allow a PC to monitor the CANbus traffic via HyperTerminal.
To do so, I have joined one of Guenther's Multiboards [noparse][[/noparse]has the RS-232 level shifters and an SX-28] with my CANsolo board.
I have tested in all for funtionality and it is working fine.· Basically it is RS-232 converted to SPI in a full-duplex mode.
In this case all power is supplied by the CANsolo which already has power.

I am still trying to create the software to support a menu selection of various commands to the MCP2515.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"If you want more fiber, eat the package.· Not enough?· Eat the manual."········
···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
701 x 712 - 221K

Comments

  • BamseBamse Posts: 561
    edited 2006-12-14 16:49
    If you would run out of the fancy CanBus boards, you could try adding the components directly to the board.
    Having done that, I strongly recommend getting the CanBus board for a much cleaner solution...
    I hope I won't be accused of "Crimes against Electronics" due to my attack on the SX Multiboard.
    Anyhow, believe it or not, it works fine...

    Attached is also an SX/B program that let's you send singe byte messages over the can bus.
    Use 38400 baud, 8 data bits, No parity, 1 Stop bit and No Flow Control.
    Note that the "String" functionality is more of a test than anything else and the code will be cleaned up later today.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
    800 x 600 - 94K
    800 x 600 - 100K
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-12-15 10:44
    Seems to be exactly what the multiboard was intended for. I made the CANsolo board because one can mix and match microprocessors on a CANbus. You just need to use SPI to interface to the MCP2515.

    I hacked one of my multiboards to have a second RS-232 port on board as the MAX232 has an unused RX and TX, but no room for CANbus.

    The only advantage with stacking·separate boards is that you can simply unplug and reconfigure as your knowledge and resources evolve. In your case, the multiboard is nearly dedicated to CANbus use. I was thinking I could do a dedicated board with the SX28 Proto Board too. Actually, it has a lot more room to do so [noparse][[/noparse]but less features].

    The permutations are infinite.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Sign In or Register to comment.