Shop OBEX P1 Docs P2 Docs Learn Events
Controller Area Network (CAN) — Parallax Forums

Controller Area Network (CAN)

MEDMED Posts: 1
edited 2006-06-18 10:58 in General Discussion
Does anyone have any information about Parallax processor in Controller Area Network (CAN)?

I would like to use a Stamp or Propeller on a CAN to communicate with and control devices.

Comments

  • BamseBamse Posts: 561
    edited 2006-06-10 21:48
    I would be interested too...

    I have an IO expander I want to try out later with my trusty old BS2...
    Right now I still have a few projects to wrap up...

    Somehow when a project is "done", there is always another idea poping up in my head that needs to be implemented... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-06-11 04:33
    I really like the MCP 2551 and the MCP 2525 2515 [noparse][[/noparse]typo] chip set for creating an application with Parallax products. It uses an SPI interface and allows you to have a lot of freedom to use your BasicStamp, your SX, or your Propeller for a dedicated application.

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

    Post Edited (Kramer) : 6/13/2006 2:28:28 PM GMT
  • BamseBamse Posts: 561
    edited 2006-06-11 21:05
    Thanks for the tip...

    I ordered the MCP2515 and MCP2551·from Microchips and I will look into the CAN bus later...

    I'll keep you posted on my findings...

    http://ww1.microchip.com/downloads/en/devicedoc/21883b.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-06-13 08:58
    Please feel free to send me a Private Message.
    The documentation is huge [noparse][[/noparse]hundreds of pages] and getting started can be slowed down by all that.
    You can avoid having to know everything to get this going by having a simple system design -- not automotive, just packets of use to 8 bytes of communication and/or control.

    This has been a back burner project of mine for a couple of years, but I really would love to have it working.
    The two chips are a RS-485 driver and a CAN Bus chip that has two addresses and several 'mail box slots'. So you can use one address to over-ride the slave's routine functions and the other address to handle routine messages.

    You will need a pair of each chip for actual communications and two microcomputers [noparse][[/noparse]BasicStamps, etc...]. Don't forget that these guys need a crystal for each. I think you can use 10Mhz. They should be the same to eliminate a lot more configuration problems.

    You need more if you want to have a network of many nodes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-06-13 14:32
    Just an after thought.
    One of the things that I now see has stalled this project is the lack of a board that will use the BasicStamp and/or the SX-28.

    The MCP2515 requires a crystal, so it is not suitable for typical breadboarding.

    I will try to work up a board that can plug the SPI into a breadboard or an SX protoboard.
    That would elimate a big bottleneck.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-06-13 20:08
    Have just completed a small board design with schematic in Eagle, but cannot figure out how to post for review and critique.
    Will try again tomorrow.

    As usual, it took hours [noparse][[/noparse]it is 4am here], but I think this is a goody.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • BamseBamse Posts: 561
    edited 2006-06-13 20:27
    Cool,

    I might have to start downloading the CAN specifications and start reading... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-06-14 14:50
    This is the artwork for a small CANBUS board to be used with the BasicStamp, the SXes, or the Propeller.· If you want the Eagle files to make a board, just ask and I will email them.

    roll.gif·

    For some reason I cannot seem to get the larger and clearer·schematic downloaded, but it is available.

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

    Post Edited (Kramer) : 6/14/2006 3:22:44 PM GMT
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-06-18 10:58
    These images are of Version 2.5 of my CANbus Solo board for use with the MCP2515 & MCP2551.· I forgot three pullup resistors on the earlier posting and I have move items for a cleaner fit.

    I intend to make four to six of these ASAP [noparse][[/noparse]about Tuesday]·to be used with BasicStamps, SXes, and/or the Propeller.· Since they all support SPI and this board can provide 5.0 regulated to power the microprocessor [noparse][[/noparse]add an in-line·3.3v regulator for the Propeller] I hope it will free up the hardward bottlenecks.··· The RS485·can be connected to a DB-9 or RJ-45 which can used twisted pair wire.··Unregulated DC [noparse][[/noparse]approximately 9volts] was provided to be sent to remote units over the same cable [noparse][[/noparse]5 wire minimum] as the signal.··The higher voltage allows one to accomodate more distance and regulation at the node to eliminate·potential noise.smile.gif·wink.gif·smilewinkgrin.giflol.gifburger.gif

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

    Post Edited (Kramer) : 6/18/2006 11:04:13 AM GMT
Sign In or Register to comment.