Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Adding CAN to CGCOLORMAX
Page 3 of 5 | |||||
Author | Message | ||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
That explains it perfectly, i understand it now.. I'm excited, but not as much as Big Kev Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Lopezjm2001 Regular Member Joined: 08/07/2012 Location: AustraliaPosts: 42 |
BACK TO TOPIC Secondly, taking note of the section of my schematic, (the one with the pale yellow background), please note the pin Numbering of the IC is not the same as the PHYSICAL pin numbering so dont wire up as if the position of the pins are as shown, use the pinout as shown in the "package types" above., (i.e. The NUMBERS are correct, the physical location of the pins is not.)Mick Thanks for pointing it out again Mick. Here is a diagram where pin numbering matches actual pin configuration. R2 is a termination resistor and may not be needed. Note how the CAN plug pin numbers do not match the Duinomite Mega. I am using the same plug for my CGcolourmax1 CANport as that is used by Duinomite Mega. I need to swap pin numbers 2 and 3 so the CANport plug pins are compatible between my CGColourMax1 and my Duinomite Mega. Lopez |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi Lopez, Here is a diagram where pin numbering matches actual pin configuration. ...... R2 is a termination resistor and may not be needed. Thanks for the new diagram, The R2 is mentioned (with an *) in the Parts list and also in the manual that it is a termination resistor and `may' not be needed. Note how the CAN plug pin numbers do not match the Duinomite Mega. I need to swap pin numbers 2 and 3 so the CANport plug pins are compatible between my CGColourMax1 and my Duinomite Mega. Yes that was an error on my part that I didn't discover till the boards went for production, however as the pins appeared on a `non-standard' 3 pin header and meant that anyone using it would need to make their own cable I figured it was a moot point and wasnt worth a mention. I admit, I didn't foresee someone swapping a cable from a DM to the UBW32-CMM and vice versa. The bottom line is, I rushed the design out as it was coming in to the busiest time of my working year and if I delayed any longer it probably would have been another 2 months before it appeared. In all, I am glad that there weren't any more serious issues with the UBW32-CMM. If I had the time there would have been a few things I would have done differently and maybe tried to squeeze RS232 or RS485 in but maybe they wouldn't fit anyway and I probably would have used the 4 wire RS485, as I am used to, and that would have upset everyone.. Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Lopezjm2001 Regular Member Joined: 08/07/2012 Location: AustraliaPosts: 42 |
UPDATE: I have added my CANbus port circuit as shown in the photos below. Geoff has provided me with a beta version of MMbasic with John Harding's CAN commands which I have downloaded for the purposes of testing Geoff's MMbasic. Unfortunately at the moment when I run the MMbasic program I get the error "Failed to Enable CAN module". What to do next. I tried adding a 120 ohm terminating resistor - same. I have tried using three MCP2551I/P. One I bought from China(hong Kong) on Ebay and the other two I bought locally from Element 14 which came from the USA. They all give me the same result i.e. "Failed to Enable CAN module". Any help from you guys would be appreciated. PS - I bought a box from Jaycar which I milled it at work and fitted OK. Lopez |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3802 |
I don't see it as the MCP2551 as it's just a transceiver. Sounds like a software bug. John |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
How much did those MCP2551I/P cost, and shipping? (i am curious because i might open shop to sell those and other electronics of course and wonder if it is worth the effort.) They are only drivers and are not able to be 'enabled'. The PIC32 has however CAN peripherals that have to be enabled before they can be used. Enabling will give the specific CAN functionality to certain pins. I guess the error comes from MMBasic trying to enable the CAN peripheral in the PIC32. Microblocks. Build with logic. |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
Is the chip on your CGCOLORMAX1 a PIC32MX795F512L. I believe that the earlier CGCOLORMAX1s were only fitted with the PIC32MX695F512L (which does not have CAN). Geoff Geoff Graham - http://geoffg.net |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Geoff More than likely I would say Geoff. I know that the DuinoMite series that I have, use the 695 for both the standard and mini boards, and the 795 for the mega and e-mega, so only the mega family are capable of CAN. The mega family also has connectors for CAN use. I can't see any mention of CAN in Rob's documentation, so I'm sure he will clear that up shortly providing the world didn't end today. Don... https://www.dontronics.com |
||||
paceman Guru Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg Interesting. Then I guess it could be a matter of what micro John (Lopezjm2001) has on his board. Don... https://www.dontronics.com |
||||
Lopezjm2001 Regular Member Joined: 08/07/2012 Location: AustraliaPosts: 42 |
They are only drivers and are not able to be 'enabled'. The PIC32 has however CAN peripherals that have to be enabled before they can be used. Enabling will give the specific CAN functionality to certain pins. I guess the error comes from MMBasic trying to enable the CAN peripheral in the PIC32. I bought three of them from Element 14 and I work near their address at 72 Ferndell St Chester Hill so I miss out on paying for delivery. I just paid AU$1.49 ea. This is my Ebay link for the other MCP2551 http://www.ebay.com/itm/1-PCS-MCP2551-I-P-MCP2551-DIP-Transc eiver-New-/260957831243? Lopez |
||||
Lopezjm2001 Regular Member Joined: 08/07/2012 Location: AustraliaPosts: 42 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg Interesting. Then I guess it could be a matter of what micro John (Lopezjm2001) has on his board. Don... It is PIC32MX695F512L-801/PF. Mistery solved. Now I may as well just throw the f...... thing into the rubbish bin. Lopez |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg Interesting. Then I guess it could be a matter of what micro John (Lopezjm2001) has on his board. Don... It is PIC32MX695F512L-801/PF. OUCH! Geoff picked it in one. It has no CAN. That is the problem. Mind you, Rob never offered CAN support on his COLORMAX1. I don't know if later versions use the 795. Rob? Don... https://www.dontronics.com |
||||
Lopezjm2001 Regular Member Joined: 08/07/2012 Location: AustraliaPosts: 42 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg Interesting. Then I guess it could be a matter of what micro John (Lopezjm2001) has on his board. Don... It is PIC32MX695F512L-801/PF. OUCH! Geoff picked it in one. It has no CAN. That is the problem. Mind you, Rob never offered CAN support on his COLORMAX1. I don't know if later versions use the 795. Rob? Don... So he must have saved 20 cents by not buying the same chip you guys have. Lopez |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
So he must have saved 20 cents by not buying the same chip you guys have. What we did on the DuinoMites was use 695s on boards that didn't support CAN, and 795s on boards that did support it, as we had CAN connectors on the boards, and advertised them as such. Mind you, the 795 was hard to source when we made the first units around this time last year. Don... https://www.dontronics.com |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
I bought three of them from Element 14 and I work near their address at 72 Ferndell St Chester Hill so I miss out on paying for delivery. I just paid AU$1.49 ea. This is my Ebay link for the other MCP2551 http://www.ebay.com/itm/1-PCS-MCP2551-I-P-MCP2551-DIP-Transc eiver-New-/260957831243? Thanks for the info! My price would be US$1.40 for up to 5 pieces. I am still working out shipping costs, it is really the most difficult part of making a online shop. The ebay price seemed high at first but including shipping it is actually a good deal (if shipping time is within limits), i hope i can match or beat that. I am not far away from the microchip factory, so i will save at least that part of shipping cost, packing and shipping to customers is the big variable and calculating margins that at the end give a reasonable profit is definitely not easy. Having a good mix of products that will allow customers to order what they need to save shipping costs is another important part. I get more respect for successfull online shops every day. Microblocks. Build with logic. |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg Interesting. Then I guess it could be a matter of what micro John (Lopezjm2001) has on his board. Don... It is PIC32MX695F512L-801/PF. Mistery solved. Now I may as well just throw the f...... thing into the rubbish bin. Would it be possible to replace it with a 795 version. The pinout is the same only extra can bus functionality on some pins. If the colormax1 versions are made with both chips it would not seem a problem. Instead of throwing it away it can be a good way to practice smd soldering. :) If you have never done it it seems very difficult but with some practice it is doable. Microblocks. Build with logic. |
||||
paceman Guru Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Geoff The chip on my COLORMAX1 is: PIC32MX795F512L-801PF. Greg Err - sorry there gents, mine is a 695 too, not 795 as I reported earlier. I checked it but wrote the opposite down - duh! Greg |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
So he must have saved 20 cents by not buying the same chip you guys have. Ouch. I don't think it was a price difference that drove it to happen. I think it was simply that the Colour Maximite schematic said " '695 or '795 " on it. A single '795 costs me $15 or so. Next version of the ColorMax they will be purchased in bulk for less. Can I send you a ColorMax populated with a '795? I have not tested CAN (I've tested RS485) but if you are testing CAN it would be reasonable to send you a ColorMax board deliberately (manually) populated with a '795 for you to test. Send me an email and I will get this to happen. Micromites and Maximites! - Beginning Maximite |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Can I send you a ColorMax populated with a '795? I have not tested CAN (I've tested RS485) but if you are testing CAN it would be reasonable to send you a ColorMax board deliberately (manually) populated with a '795 for you to test. WOW! Sounds like an offer too good to refuse. Has the world ended in your neck of the woods Rob? All seems OK here. I must have slept through it. Don... https://www.dontronics.com |
||||
Page 3 of 5 |
Print this page |