Can anyone recommend some good reasonably priced CAN devices that I can use to test my code on?
I don't know exactly what you are asking for. Do you want a common CAN interface chip built to an ISO specification or are you after a circuit board with a CAN interface chip built into it? What processor is your code written for (AT90CAN128/64/32)? What are you using for development hardware (your own PCB, STK500/501, STK600, ATDVK90CAN1, ...)?
There are chips like the ISO 11898 ATMEL ATA6660. Almost every major chip manufacturer makes a chip like this (way too many to list). If you have a STK500/501 there is the ATADAPCAN01 (a circuit board with an ATA6660):
A little help please....
Best case scenario would be a sensor with a CAN front end to talk with. I'm just looking for something to communicate with to test it.
If you buy something complete with software and built in sensor(s) it might be a CAN based product built on a high level protocol like CANopen, CANfestival, CANkingdom, DeviceNet, J1939, etc. This would add the complexity of adding a high level protocol in the code you want to test, just to be able to talk to your test CAN node.
You need at least two CAN nodes for any type of testing. What I usually do is run a development board like the STK500/501, AVRStudio IDE and a JTAGICE MKII with a second custom PCB CAN node. If you stick with the AT90CAN32 the less expensive Dragon will work. There is a reported Dragon hack to exceed the advertised 32 k FLASH limit, but I don't know how well it really works.
One built in sensor exception is the ATMEL ATDVK90CAN1 development board with example software, LEDs, voltage reading, light and temperature sensors and speaker (DigiKey prices these at $ 115 retail):
There are lots of other available CAN development boards out there:
Google for "AT90CAN development board".
I have not found developing software simultaneously for both nodes in a CAN network to be problem (I have used both JTAGICE and USART to PC for embedded processor status/communication/debugging).
I have an available updated AVR CAN article (about 118 kb) if you Private Message (PM) an e-mail address.
© 2020 Microchip Technology Inc.