Author Topic: DCC++ HAT (Raspberry Pi)  (Read 10785 times)

0 Members and 1 Guest are viewing this topic.

dcutting

  • Crew
  • *
  • Posts: 359
  • Gender: Male
  • Respect: -58
DCC++ HAT (Raspberry Pi)
« on: April 21, 2017, 08:59:13 PM »
0
The DCC++ HAT is here!!! Should be available in June from CESM (www.cescalemodels.com/dcc)




Features:

- 5 Amps on both main and programming track, with 6A peak current (I designed a huge heat sink into both the top and bottom copper layers). A lot of members of the DCC++ FB group have expressed interest in this feature because of the current 2A limitation of the L298.

- ATmega328P running at 16MHz 3.3V (because I didn't want to have to level shift 5V for the Pi). This will act as the DCC++ side of things because I don't want to have to port all of the code to the Rpi. The Rpi in this case will either serve as the JMRI controller in most cases.

- EEPROM chip that stores info about the HAT as specified by the Rpi foundation HAT Spec. It will allow the Rpi to detect the presence of the shield and verify that it is the correct one.

- Communicates with Rpi over Serial (UART). Basically the USB interface from before, but without all of the USB bits that make USB boards expensive.

- Programming requires external ICSP programmer (you can use your arduino). Programming directly from the Rpi would have been challenging and risky, with different voltages and connected hardware.

- 100% compatible with existing DCC++ Code, as it uses the same pins and microcontroller

If you have any questions or suggestions, I'd love to hear them below.
« Last Edit: April 22, 2017, 12:40:57 AM by dcutting »
David Cutting

peteski

  • Crew
  • *
  • Posts: 35260
  • Gender: Male
  • Honorary Resident Curmudgeon
  • Respect: +6640
    • Coming (not so) soon...
Re: DCC++ HAT (Raspberry Pi)
« Reply #1 on: April 21, 2017, 10:55:55 PM »
0
Runs at 8 milli Hertz? That's wicked slow!  You probably meant 8MHz (small "m means" milli while large "M" means Mega).   :D
. . . 42 . . .

dcutting

  • Crew
  • *
  • Posts: 359
  • Gender: Male
  • Respect: -58
Re: DCC++ HAT (Raspberry Pi)
« Reply #2 on: April 22, 2017, 12:34:16 AM »
0
 :facepalm: My bad... and I'm actually running at 16MHz because the libraries are written for that speed.
David Cutting

John

  • Administrator
  • Crew
  • *****
  • Posts: 13997
  • Respect: +4178
Re: DCC++ HAT (Raspberry Pi)
« Reply #3 on: April 22, 2017, 06:54:12 AM »
0
David .. your website says sold out --- thats good ...   :D


Philip H

  • Crew
  • *
  • Posts: 9026
  • Gender: Male
  • Respect: +1795
    • Layout Progress Blog
Re: DCC++ HAT (Raspberry Pi)
« Reply #4 on: April 22, 2017, 09:32:31 AM »
+1
So for Us non-computer- nerds what does this thing do? What would I use it for with my NCE powercab system?
Philip H.
Chief Everything Officer
Baton Rouge Southern RR - Mount Rainier Division.


C855B

  • Crew
  • *
  • Posts: 11414
  • Respect: +2871
Re: DCC++ HAT (Raspberry Pi)
« Reply #5 on: April 22, 2017, 10:01:24 AM »
+1
So for Us non-computer- nerds what does this thing do? What would I use it for with my NCE powercab system?

https://sites.google.com/site/dccppsite/home

Ostensibly, it replaces your NCE system. DCC++ is command station software designed to run on inexpensive microcontrollers like Arduino and RaspberryPi. The tricky part (for the user building the command station) is the hardware converting all the bits and bytes to DCC-modulated power to put on the rails, which is what David is offering here in his new board.

IOW, it's a way to get to a pretty cheap DCC command station - under $100 - with built-in JMRI interface. Adding to the cost is requring an external computer, although many of us have an old PC gathering dust in a closet, and the PC side doesn't need the latest and greatest.

It's an interesting solution for low-cost DCC which would appeal to the robotics and neo-tinkerer crowd already familiar with the Arduino, etc., or somebody wanting to explore that world. Definitely "geek" territory, although David's board moves it slightly closer to plug-n-play.
...mike

http://www.gibboncozadandwestern.com

Note: Images linked in my postings are on an HTTP server, not HTTPS. Enable "mixed content" in your browser to view.

There are over 1000 images on this server. Not changing anytime soon.

dcutting

  • Crew
  • *
  • Posts: 359
  • Gender: Male
  • Respect: -58
Re: DCC++ HAT (Raspberry Pi)
« Reply #6 on: April 22, 2017, 09:51:52 PM »
+1
David .. your website says sold out --- thats good ...   :D

Wait until June and there will be stock. I'm also looking into distributors.

https://sites.google.com/site/dccppsite/home

Ostensibly, it replaces your NCE system. DCC++ is command station software designed to run on inexpensive microcontrollers like Arduino and RaspberryPi. The tricky part (for the user building the command station) is the hardware converting all the bits and bytes to DCC-modulated power to put on the rails, which is what David is offering here in his new board.

IOW, it's a way to get to a pretty cheap DCC command station - under $100 - with built-in JMRI interface. Adding to the cost is requring an external computer, although many of us have an old PC gathering dust in a closet, and the PC side doesn't need the latest and greatest.

It's an interesting solution for low-cost DCC which would appeal to the robotics and neo-tinkerer crowd already familiar with the Arduino, etc., or somebody wanting to explore that world. Definitely "geek" territory, although David's board moves it slightly closer to plug-n-play.

Well said - I plan to offer a pre-flashed SD card and a case with the power supply too so that it becomes a truly plug-and-play system - all you would then need is a keyboard, mouse, and monitor.
David Cutting

jagged ben

  • Crew
  • *
  • Posts: 3366
  • Respect: +589
Re: DCC++ HAT (Raspberry Pi)
« Reply #7 on: April 23, 2017, 03:25:43 PM »
0
What does HAT stand for? 

nkalanaga

  • Crew
  • *
  • Posts: 10572
  • Respect: +1752
Re: DCC++ HAT (Raspberry Pi)
« Reply #8 on: April 24, 2017, 12:41:53 AM »
0
I doubt that it's what I usually think of - names for planets around other stars.  "Hungarian-made Automated Telescope" (network), HATnet, names their discoveries HAT-P#.

"Homemade Automated Throttle", maybe?

I have no idea, and am just guessing...
N Kalanaga
Be well

C855B

  • Crew
  • *
  • Posts: 11414
  • Respect: +2871
Re: DCC++ HAT (Raspberry Pi)
« Reply #9 on: April 24, 2017, 12:51:57 AM »
0
Guys, here you go: https://www.raspberrypi.org/blog/introducing-raspberry-pi-hats/

"Hardware Attached on Top"  :facepalm:
« Last Edit: April 24, 2017, 02:00:57 AM by C855B »
...mike

http://www.gibboncozadandwestern.com

Note: Images linked in my postings are on an HTTP server, not HTTPS. Enable "mixed content" in your browser to view.

There are over 1000 images on this server. Not changing anytime soon.

u18b

  • Crew
  • *
  • Posts: 4052
  • Respect: +2373
    • My website
Re: DCC++ HAT (Raspberry Pi)
« Reply #10 on: April 24, 2017, 08:34:31 AM »
0
So......
This is a Raspberry Pi computer board with a DCC control unit married to it?

Then I assume this can run Linux operating system?

If the questions above are all yes, then I am very interested.
Ron Bearden
CSX N scale Archivist
http://u18b.com

"All get what they want-- not all like what they get."  Aslan the Lion in the Chronicles of Narnia by C.S.Lewis.

C855B

  • Crew
  • *
  • Posts: 11414
  • Respect: +2871
Re: DCC++ HAT (Raspberry Pi)
« Reply #11 on: April 24, 2017, 09:22:03 AM »
0
Yes and yes. Normal Raspberry Pi OS is a Debian Linux variant called "Raspbian".
...mike

http://www.gibboncozadandwestern.com

Note: Images linked in my postings are on an HTTP server, not HTTPS. Enable "mixed content" in your browser to view.

There are over 1000 images on this server. Not changing anytime soon.

dcutting

  • Crew
  • *
  • Posts: 359
  • Gender: Male
  • Respect: -58
Re: DCC++ HAT (Raspberry Pi)
« Reply #12 on: April 24, 2017, 03:53:53 PM »
0
So......
This is a Raspberry Pi computer board with a DCC control unit married to it?

Then I assume this can run Linux operating system?

If the questions above are all yes, then I am very interested.


As C855B said, this device runs linux. I'm also working on its ability to run the Wondows 10 IoT core, we will see how that goes. I'm working on the next version of the board, will post in next few days with details. I'm including some really exciting new features... think locnet-esque system but modernized and open-sourced.

Guys, here you go: https://www.raspberrypi.org/blog/introducing-raspberry-pi-hats/

"Hardware Attached on Top"  :facepalm:

Right you are... at least the acronym sounds cool... maybe I should offer some DCC++ bowler hats  :trollface:
David Cutting

Philip H

  • Crew
  • *
  • Posts: 9026
  • Gender: Male
  • Respect: +1795
    • Layout Progress Blog
Re: DCC++ HAT (Raspberry Pi)
« Reply #13 on: April 24, 2017, 11:19:46 PM »
0
Nah - for the hipsters you need DCC ++ trilby's
Philip H.
Chief Everything Officer
Baton Rouge Southern RR - Mount Rainier Division.


nkalanaga

  • Crew
  • *
  • Posts: 10572
  • Respect: +1752
Re: DCC++ HAT (Raspberry Pi)
« Reply #14 on: April 25, 2017, 01:51:12 AM »
0
Mike:  Thank you.  I never would have guessed that one...
N Kalanaga
Be well