Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Where has everyone gone?

2014-05-02 by Dave Hylands

Hi Mark,

I've recently been playing with MicroPython (micropyton.org) which runs on an STM32F405 (Cortex-M4 with FPU). I really like the builtin DFU bootloader (no programmer required).

STM seems to have a nice peripheral library. If you're looking for something that works on more than one family, then I recommend the mbed library. It now covers many more devices than just the mbed board. https://github.com/mbedmicro/mbed It seems like all of the ARM vendors now have pretty decent "getting started" boards which are inexpensive.

I'm still a command line/makefile/use my editor as an IDE type of person, so I've never missed AVR Studio (also I favor linux environments for SW development). Eclipse seems to be the IDE of choice when moving away from the vendor supplied ones, although I've never really played with it.

The gcc toolchain is common amongst the ARM chips, so at least that part should be similar.

The AVR is still very appropriate for certain environments, but as a hobbyist, I'd rather program in something a bit higher level than C (hence the interest in MicroPython). There is also eLua and JavaScript available now for some of the cortex chips as well.

Dave Hylands



On Fri, May 2, 2014 at 6:53 AM, Mark Nowell <mark@dicam.co.uk> wrote:


Dave et al

Background is that we have 20-year-old proprietary 485 protocol running at 9600, connecting up to 30 controllers over a mile or more, and we're looking to upgrade! A broad range of applications but primarily HVAC and building automation. Ideally I'd like:

a) more bandwidth;
b) isolation;
c) greater address range;
d) possibility of in situ firmware updates;
e) 'seamless' connectivity with/through wireless nodes, repeaters etc.
f) low hardware cost.

CAN/CANopen is currently the front-runner, followed by Modbus, possibly BACnet? However I've read a few articles recently advocating "IP to the end-point" using small IP stacks that will fit in a reasonably low-level micro. IP sounds good. Ethernet? Application layer? I'm probably trying to convince myself this isn't the obvious choice it might otherwise sound.

I'm interested in the various directions people have taken from the AVR. I've been looking at the Atmel Cortex-M3 range but I';m another one who has been clinging to AVR Studio 4.x. I've no experience of ST/NXP/Freescale/etc development tools so it's good to hear views on these.

Thanks,
Mark



On 02/05/2014 04:18, Dave McLaughlin wrote:

Hi Mark

There are a number of protocols to choose from and they depend on whether this is for home or commercial use.

CANBUS Nice and reliable and easy to use once you understand the basics. No licensing issues if you use devices with CAN built in. FPGA with CAN requires licensing. Protocol information freely available. Many PROTOCOLS are based on the CAN hardware layer. Some free. Can use your own if only you r devices on the network.

MODBUS Very old and can work on RS232, RS485 or Ethernet (TCP protocol - that even works over a GPRS connection) Many libraries out there and again, like CAN, no licensing issues and protocol free. This is a great protocol and just works. I have a Variable Speed Drive connected to a 40KW motor that is controlled via MODBUS on an Android device. Libraries for almost all languages are out there.

CANOPEN Industrial and some free libraries. Runs on CAN Bus and an established protocol.

HART Industrial protocol for sensors on 4-20mA loop but expensive to license unless you are going to sell lots of devices. Even just to get the protocol docs to read devices is 1000's of dollars. I have a very small project for this but stalled at this time due to the licensing costs.

These are just sample of what I have looked at or used recently. There are many more like PROFI-BUS etc. Do a Google search and you will get lots of hits and when you find one you like, come back and post to see if anyone knows about it.

Good luck with the project. (assuming you have one in mind)

Dave…

---

Very funny Scotty, now beam down my clothes…

---

From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Mark Nowell
Sent: 01 May 2014 19:13
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Where has everyone gone?

like-minded engineers in a discussion about choice of network protocols for industrial controls.

Thanks,
Mark







--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.