I just took a look at the specs for the STM32F103. Very impressive.. 10x the RAM, 128K flash, 72MHz, for $7?
Debugging support is a huge gain, too.
It sounds pretty good.
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf Of Chris Morgan
Sent: Friday, March 8, 2013 5:56 AM
To: open...@googlegroups.com
Subject: v5 and other discussion
- Switch to an alternative architecture. Chris mentioned the STM32F1 series, specifically the STM32F103. I'm quite familiar with these and they can have a ton of IO, the one I use has 5 serial ports and a boatload of gpio, I think STM32F105 is the particular part. The cpu is a Cortex-M3, 32bit armv7-m architecture. Its a very fast cpu, ~$7USD. Other cpus have been considered, I looked at the OMAP4 (it is expensive), but maybe someone else has another idea.
I actually work with stm32 professors on a daily basis. It's very quick, 32 bit and they have variants with tons of io. Like most lower end processors though it lacks a mmu so it's a pain to debug.
Chris
the AT90USB1286 has USB, as well as some of the cheaper alternatives, like
the 16U2 used I the Arduino Leonardo.
There is also V-USB, a free library
http://www.obdev.at/products/vusb/index.html.
But USB virtual serial ports are for MCU->host comms.
For MCU->MCU comms, the UART is all we need.
There is also a SoftSerial library that can emulate a UART if we need more
than one,
but in my limited experience when playing with it, I was getting a lot of
lost packets.
The Mega has 4 UARTs but no USB.
There is no need for a FTDI USB or a db9 cable. The pi has GPIO. The general purpose io is TTL so all that's needed is connecting wires. It would be a waste to convert TTL to rs232 transceiver to cable to rs232 transceiver to TTL or in the case of FTDI TTL to FTDI - cable to USB to emulated serial.
So in the case of Rpi to OpenEVSE the best connection choice would be OpenEVSE i2c to Rpi i2c or TTL URT to TTL URT. Note a voltage divider may be needed to go from 5v to 3.3v on the pi rx pin if it is not 5v tolerant.
--
Sorry, I don’t quite understand.. you want to connect the OpenEVSE board as a USB device to a Raspberry Pi as a USB host? I don’t see the advantage of that over just doing serial comms between them. Also, does the Pi even work as a USB host?
The Pi definitely works as a USB host, it's a full fledged ARM SoC which typically runs Linux. There are also people writing native ARM code though for more RTOS/MCU like capability. That said...I agree with you that serial is preferable for interfacing with a MCU for reasons I previously specified.Sorry, I don�t quite understand.. you want to connect the OpenEVSE board as a USB device to a Raspberry Pi as a USB host? I don�t see the advantage of that over just doing serial comms between them.� Also, does the Pi even work as a USB host?
Regards,
Mike
Mike,
I believe the adafruit issue is due to an overall poor design by adafruit. There are a number of issues with that board including missing grounds, resistors way too close to the mounting holes. And there are ZERO capacitors on the adafruit unit which I believe is what is causing the issue.
This is the primary reason I designed the Open EVSE LCD. There is a .1uf cap very close to to the chip. So gar there have not been any reports of garbled text on the OpenEVSE version.
Chris
Mike
Hi Jean-Michel,
I think the Zoe uses a Type 2 connector, but it should work OK if you can figure out the wiring. I believe it still uses the J1772 standard … but you should double check.
Is your board able to run the unmodified code without any issues? Even though your code size is small enough to fit, the main problem we’ve been having is fitting into the 2K RAM constraint.
You may have to disable the LCD menus in order get it small enough.
If your energy monitoring code uses floating point, be careful about latency issues.. the GFCI is triggered via software. Also, it might introduce delays which alter the timing of the handshake with the car.
I think you cannot use pin 9, since it outputs a PWM signal.
-Sam
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf Of jeanmiche...@gmail.com
Sent: Wednesday, March 27, 2013 4:58 PM
To: open...@googlegroups.com
Subject: Re: v5 and other discussion
First of all, I'd like to thank very much Chris and Sam for the great work they have done.
--
Hi Jean-Michel,
Sounds like you have a great build. I would love to see your source code, a lot of people are interested in the power monitoring. I am working on a i2c board to measure voltage and current loosely based on openenergy.
You can use pin 9 in some instances but it is not recommended. Because it is tied to PWM you can't manipulate by normal means. You can try setting it as an input and then enabling either the pull up or pull down... It's pretty messy but you may be able to get some functionality from the pin.
To test GFCI I use a 24VAC sprinkler transformer. The trip current is set to 20ma. So to test I run 1 wire through the CT and then attach a 4800Ohm (5ma) resistor between the transformer leads GFCI should not trip. Change the resistor to 1000 Ohm to 1200 Ohm (20ma) and GFCI should trip.
Chris
Hi Jean-Michel,
Sounds like you have a great build. I would love to see your source code, a lot of people are interested in the power monitoring. I am working on a i2c board to measure voltage and current loosely based on openenergy.
...Chris
Hi Jean-Michel,
...
Is your board able to run the unmodified code without any issues? Even though your code size is small enough to fit, the main problem we’ve been having is fitting into the 2K RAM constraint.
If your energy monitoring code uses floating point, be careful about latency issues.. the GFCI is triggered via software. Also, it might introduce delays which alter the timing of the handshake with the car.
...
-Sam
That’s great that you got the energy monitoring to fit in.
D’oh. I wrote the GFCI code and forgot that it was interrupt driven … it’s been a while.
I wonder if the EVSE polling could be moved to a software interrupt to reduce the impact of the energy monitor/electricity meter latencies.
-Sam
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf Of jeanmiche...@gmail.com
Sent: Monday, April 1, 2013 9:06 AM
To: open...@googlegroups.com
Subject: Re: v5 and other discussion
Hi Sam,
--