EmbDev.net

Forum: PCB design Hardware for OpenHR20 Wireless Master

Author: Marco G. (stan)
Posted on: 2009-12-04 14:12

Hi,

this topic is about the PCB for a wireless master in the OpenHR20
project.
A thread about the OpenHR20 firmware can be found at
http://embdev.net/topic/118781

A german article about OpenHR20 can be found at
http://www.mikrocontroller.net/articles/Heizungsst...
(information might be a bit outdated).

Some schematic of a PCB can be found in the SVN repository at
http://openhr20.svn.sourceforge.net/viewvc/openhr2...

The 10-pin connector is the same as the one on HR20, so there is JTAG
and a RX/TX. For connection to a router as WRT or FritzBox, a
serial-to-USB converter might be necessary. But I'm not sure whether a
FTDI driver would work on a FritzBox.


Feel free to contribute if you are interested in designing or if you
already have a prototype and want to share your findings.

Regards
Marco
Author: Marco G. (stan)
Posted on: 2009-12-06 11:25

Ok, seems that the project Freetz [1], a custom firmware for FritzBoxes,
supports the FTDI serial converters [2].

Would it be better to integrate a FTDI converter on the master board, or
connect two boards using the 10-pin connector?

And is it ok to supply the master board from USB?



[1] http://trac.freetz.org/wiki/freetz (german)
[2] http://trac.freetz.org/wiki/libs/ftdi (german)
Author: Marco G. (stan)
Posted on: 2009-12-27 11:03
Attached files:

my first try (I obviously not completed routing yet ;)
Author: Marco G. (stan)
Posted on: 2009-12-27 20:11
Attached files:

ok, next version :)

If it is connected directly to a serial interface, the FTDI USB
converter part can be cut.
All parts except the coil are mounted on the top, and even the coil
could be mounted on top if it is isolated a bit.

I've no idea what kind of antenna should be used on the RFM12 modules,
so feel free to contribute, also if you find some errors :)

br
Marco
Author: Ronny Kunze (rising_edge)
Posted on: 2009-12-27 22:39

Hi Stan,

Yes your board looks good. I have add ,at my master, a second led which
show the transmission of the sync packet. This looks usefull for
diagnostic purposes. Maybe it could usefull to connect some additional
portpins to pad for expansions.

bye

Ronny
Author: Ronny Kunze (rising_edge)
Posted on: 2009-12-27 22:47

Why not use a mini USB ? like
http://www.reichelt.de/?;ACTION=3;LA=444;GROUP=C12...

Ronny
Author: Marco G. (stan)
Posted on: 2009-12-28 20:26
Attached files:

Hi Ronny,

great idea! Are these four enough? Is it ok to use the INT-inputs? They
are located at a free corner ;)

br
Marco
Author: jdobry (Guest)
Posted on: 2009-12-29 10:46

Hi,

I can't see any problem with P1-P4 lines. We have many free lines
because this MCU is too big for this aplication. But it is smallest CPU
with JTAG debuging from Atmel.

- current SW need some communication buffers and use ATmega32 not
ATmega16. Pinout is same, difference is volume of RAM (and Flash)

- RTS# signal for RESET# can be problem if we want to use simple
terminal for debugging. Can you add jumper into this signal?

- Antena can be lambda/4 wire, for 868 it is 86mm (L[mm] =
75000/frequency [MHz])

- Antena can be path on PCB, due to PCB effect it must be 10-20% shorter
than wire. Wire is usualy better.

Happy new year! Jiri
Author: TravelRec. (Guest)
Posted on: 2009-12-30 08:42

For which purpose the FSK-pin is used? All functions are available via
SPI.
Author: jdobry (Guest)
Posted on: 2009-12-30 09:58

FSK pin is not used and in this case it need pull-up resistor. My
original design use pull-up inside MCU, it save soldering of one
component. Just a trick, nothing more.
Author: jdobry (Guest)
Posted on: 2009-12-30 15:01

Please remove R2+C5 components. ATmega contain better startup reset
circuits inside and it complicate external reset signal connection
(capacity load).
Author: Marco (Guest)
Posted on: 2009-12-30 21:04

Thanks for your suggestions, I'll take care of them when I come back
from skiing :)
Author: jdobry (Guest)
Posted on: 2009-12-31 11:58

@Ronny Kunze: can you add your modification with second led into source
code? If it is not use incompatible pinout, sure.
If you need access to SVN tree, please send me email.
Author: Marco G. (stan)
Posted on: 2010-01-03 14:00
Attached files:

Hi,

here are the changes for version 0.4:

jdobry wrote:
> - current SW need some communication buffers and use ATmega32 not
> ATmega16. Pinout is same, difference is volume of RAM (and Flash)
Atmega16 changed to ATmega32.

> - RTS# signal for RESET# can be problem if we want to use simple
> terminal for debugging. Can you add jumper into this signal?
done

> - Antenna can be lambda/4 wire, for 868 it is 86mm (L[mm] =
> 75000/frequency [MHz])
> - Antenna can be path on PCB, due to PCB effect it must be 10-20% shorter
> than wire. Wire is usually better.
ok, I keep the the via to solder a wire.

> FSK pin is not used and in this case it need pull-up resistor. My
> original design use pull-up inside MCU, it save soldering of one
> component. Just a trick, nothing more.
external pull-up resistor added and connection to ATmega removed.

> Please remove R2+C5 components. ATmega contain better startup reset
> circuits inside and it complicate external reset signal connection
> (capacity load).
well, if they are not populated there's just 1 mm of extra wire on the
PCB.

Test point number four is replaced by an extra LED as suggested by
Ronny.

Any more suggestions?

BR
Marco
Author: Marco G. (stan)
Posted on: 2010-01-03 16:10
Attached files:

here's some kind of preview :)

Of course L1 (at the bottom) is not a resistor, but it is the most
similar package.


Another idea:
would it be better to rotate the RFM12 by 180° so that the antenna is
located at the left edge of the PCB? Or is it ok right now because a
vertical antenna can be used?
What do you think?
Author: jdobry (Guest)
Posted on: 2010-01-04 13:35

I can't found any problem with this PCB.
Rotation of RFM12 is not needed. But I have another idea to add ground
soldering point close to antena. It can be useful when somebody will
need connect antena via coaxial cable.

Jiri
Author: Marco G. (stan)
Posted on: 2010-01-04 16:07

Thanks Jiri :)

I'll add a point for soldering a GND connection and tomorrow I'll place
my order.
Author: Ronny Kunze (rising_edge)
Posted on: 2010-01-06 08:11

Hello People,

I will modify my code to work with your LED port and send a patch in the
evening.

Ronny
Author: Jiri Dobry (jdobry)
Posted on: 2010-02-02 13:52

Marco G:

You can compare rendered image with real here:
http://openhr20.svn.sourceforge.net/viewvc/openhr2...
Only one difference except missing FTDI is used inductor. I was use
10uH.

Could you send me source files for update documentation?
Today I plan to replace old prototype board with your PCB and in this
case source code will not fit into schematics in SVN. Thanks, Jiri
Author: Jiri Dobry (jdobry)
Posted on: 2010-02-02 14:42

OPPS!

I found problem. This design can be used without FTDI with 3.3V power.
But with FTDI and USB power RFM12B will be overpowered.
Recomended power range for RFM12B is from 2.2V to 3.8V
5V from USB will not damage it (maximum is 6V) but it is outside range.

Jiri
Author: Marco G. (stan)
Posted on: 2010-02-02 14:46

Yes you're right, I intended to use a RFM12 (without 'B') on master
because of the 5 V USB supply.

AFAIK there's no difference between RFM12 and RFM12B, but I'm not sure.
Author: Jiri Dobry (jdobry)
Posted on: 2010-02-02 14:53

here is differences between RFM12 and RFM12B:
http://news.jeelabs.org/2009/05/06/rfm12-vs-rfm12b...
Author: Ralf H. (heschdy)
Posted on: 2010-02-02 14:56

Its easy to fix: remove L1 and use the 3.3V Ftdi Internal
Voltageregulator it drive up to 50mA - is that enough for the rfm12???
Author: Jiri Dobry (jdobry)
Posted on: 2010-02-02 15:06

@Ralf H.:

50mA is enought

- RFM12B have 26mA maximum
- ATMEGA32 (5V/10MhZ) need 15mA maximum
- and remaining 19mA for LEDs

Problem is that you must crop VCC layer on back side, because FTDI must
be powered from 5V, remainnig part from 3V3

PS: I was also use RFM12B and I miss information that pull up on FSK is
not needed. It is not problem on this PCB, but I was can save soldering
of one wire and resistor inside valves.
Author: Marco G. (stan)
Posted on: 2010-02-03 07:21

Jiri Dobry wrote:
> Could you send me source files for update documentation?
> Today I plan to replace old prototype board with your PCB and in this
> case source code will not fit into schematics in SVN. Thanks, Jiri

I'll send them to you this evening :)
Author: Marco G. (stan)
Posted on: 2010-02-03 07:27

Ralf H. wrote:
> Its easy to fix: remove L1 and use the 3.3V Ftdi Internal
> Voltageregulator

It's not that easy:
VCCIO must be connected to 3V3OUT so that the UART pins are driven with
3.3 volt. Otherwise TX would still have 5 volt high level which would
cause problems with ATmega.
Author: Jiri Dobry (jdobry)
Posted on: 2010-02-03 10:08
Attached files:

> VCCIO must be connected to 3V3OUT so that the UART pins are driven with
> 3.3 volt. Otherwise TX would still have 5 volt high level which would
> cause problems with ATmega.

I thing that it is easy, see to the pictures.

- 1 wire to crop.
- 2 new wires
- do not use inductor
Author: Jiri Dobry (jdobry)
Posted on: 2010-02-03 10:20
Attached files:

Connection on bottom side for modification.
Author: RFM12user (Guest)
Posted on: 2010-02-03 11:09

@ Marco

Hi  Marco,

are there master boards left ?
I am interested in one.


Ludger
Author: Marco G. (stan)
Posted on: 2010-02-03 11:12

sorry, I haven't got any left.

But I would fix the bug mentioned above and order some new ones. The bad
thing is that they need at least 2 weeks to arrive...
Author: reinis (Guest)
Posted on: 2010-02-04 18:55

hello marco g.

i would also be interested in a masterboard (or two).
Can sell 2 to me / shipment to germany ?

regards reinis
Author: Ralf H. (heschdy)
Posted on: 2010-02-04 23:41

Hello,

i have one board more then i need. but not the simular design. its a
little bit smaller. and some components are in 0402. I get these boards
next week.

Ralf
Author: Marco G. (stan)
Posted on: 2010-02-08 15:45

I've added my schematics to the repository, including a fixed version
0.6

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]






webmaster@embdev.netContactAdvertising on EmbDev.net