Reef-Pi Controllers: New all-in-one with power bar, and the original Pico

_AV

Well-Known Member
View Badges
Joined
Oct 3, 2019
Messages
679
Reaction score
695
Rating - 0%
0   0   0
Can, except the apex is their own proto on top of a CAN physical layer. Mostly pretty annoying :)

Ah yes. It certainly is. It's all on github though by now.

Your power bar even has the same number of outlets as an EB8.
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Ah yes. It certainly is. It's all on github though by now.

Your power bar even has the same number of outlets as an EB8.

Yeah - not all the modules were reversed but at least the key ones. Right now my design has everything actually wired to a physical CAN controller - I considered at least making sure it was dual wired to a SERCOM peripheral, but kept it simple this time around. The actual bus physical side is identical (12V, CANH/L, GND)
 

_AV

Well-Known Member
View Badges
Joined
Oct 3, 2019
Messages
679
Reaction score
695
Rating - 0%
0   0   0
Yeah, Apex won't talk to a CAN controller directly. A transceiver for the next revision maybe?

I might have missed it, are you doing any current sensing?
 
Last edited:
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Yeah, Apex won't talk to a CAN controller directly. A transceiver for the next revision maybe?

I might have missed it, are you doing any current sensing?

Yeah, at least for the inlet power. There is a CT around the line/neutral, which is run down to the bottom board. I may need to do a second pass on the circuit for this feature to add a much beefier low pass filter as many modern SMPSs are very very noisy :)
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Logic board first articles, no all connectors mounted. Coming along!

There are a few fixes I identified from the load controller board I made (such as needing a pullup up RESET :(), but its a quick fix to do on the board are everything is pretty well spaced out. More soon, such as in-case shots.

image0.jpeg
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,527
Reaction score
1,811
Location
RVA
Rating - 100%
1   0   0
Logic board first articles, no all connectors mounted. Coming along!

There are a few fixes I identified from the load controller board I made (such as needing a pullup up RESET :(), but its a quick fix to do on the board are everything is pretty well spaced out. More soon, such as in-case shots.

image0.jpeg

Coming along nicely!
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Some recaps from the weekend:

- The load tester / AC load has been fully built out. Some pictures.
IMG_7623.jpg

IMG_7624.jpg


Only a few mistakes which were fixed with some clever wire harness work (series resistor the fan PWM signal):

IMG_7628.jpg


Its sharing the same MCU as the actual logic board, which made setup and testing much easier and carries over to the actual controller. Its a new setup for me, so getting used to the library stack, USB driver, etc all can be re-used.

The actual controller boardfg, which, minus forgetting to buy a connector, is looking like its a good fit. Note that I don't have the cosmetic face-plates designed yet, nor the top milled, but its starting to look pretty good!

IMG_7634.jpg


IMG_7632.jpg


The aluminum plate needs some light adjustment to let the locking tab of the XA connectors fully engage and disengage - I didn't account for its ramp like shape when cutting the clearance, but this doesn't prevent any further testing.

The board powers up nicely, all the voltage rails are where they should be, so now its a matter of lots of firmware.

Its also impressive on how small this ended up being - on your average keyboard its from the spacebar to the F-keys, and left to right from the far left out to the J key.
 

hotdrop

Well-Known Member
View Badges
Joined
Jan 29, 2019
Messages
608
Reaction score
567
Rating - 0%
0   0   0
Is that enough spacing to separate the outlets? Asking cause my power bricks never fit into the surge protector
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Is that enough spacing to separate the outlets? Asking cause my power bricks never fit into the surge protector

Power bricks can be huge and various orientations - its a pretty standard outlet spacing, but larger bricks can always use extensions:
 

hotdrop

Well-Known Member
View Badges
Joined
Jan 29, 2019
Messages
608
Reaction score
567
Rating - 0%
0   0   0
I’m excited to see this thing in action. What do you think it will cost? 200ish?
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
I’m excited to see this thing in action. What do you think it will cost? 200ish?

Around there.

Project is still on-going, though I took an extended holiday break for much of November/December (much needed).

Currently, I'm working through the firmware. There are a few small fixes needed on the main board, but no major redesigns. Doing the aluminum cutouts is still pending - I've prototyped one in house but trying to outsource this work if I can. I like the build the first versions in house, but then try to not bottleneck things on how fast I can build things after something is proven :)

Currently, I have the following working:

- UF2 bootloader, shared with the Adafruit line of Feather boards, which means you can update it by just dropping code on a USB "drive" on your computer. I'm making some slight modifications to run with two banks of flash which the original doesn't.
- Basic GPIO and control of outlets and status indicators. I wrote a hacky driver for ReefPi control by using the file module, and will try to clean that up
- OLED display support is still not started (as promised)
- I'm working through the sensor ports. I made them "complicated" so its taking a little bit of time to work through the various modes. Specifically, there is a current compare function as well as a few functions to detect dumb sensors (floats) as well as 1-wire smart sensors (temp, pH), and reset stuck sensors, detect new sensors, etc. Each port runs independently.
- I prototyped a number of things using some throw-away C based on the MPLAB Harmony framework, which is useful. I however (as one does with no external pressures) started porting a lot of the logic and runtime to Rust. I'm planning on making use of the TinyUSB library with Rust bindings to support the USB front and not the Microchip libraries. The Microchip libraries have a crappy not-really-OSS license which I'd like to avoid wherever possible.

More updates soon!
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Some new visuals: I'm finally on working out the tooling for machining the case top lids for the power outlets and mounting screws. All I have for this is a basic CNC6040 (Chinese metric) router, but with the upgraded spindles so it can run small tools quickly (24000RPM) and has a decent shot at shallow cuts in aluminum. This is not a precision, rigid, or even chip containing setup but will work fine for the first batch or so - plus everything is through holes so no controlled depth here.

The plan here is to use this stock plate as a fixture - I'll mill out a pocket in the plate so the actual case cap sits in the plate, giving me a chance of clamping it down. Not sure if I'll clamp it from the sides or the top and bottom, I may try to do sides and use small plate sections along the sides screwed into the plate. I also need to sort out the tool zeroing/centering setup for this fixture - I haven't gotten to a Haas MiniMill in the garage yet so no auto-probing setup for me ;)

machine1.jpg


Since I don't have any tool changes, I want to try running everything on the same bit, and these cutters from Mari-Tool are a really good fit - bore out the #6 screw holes and cut the outlets with small corner radiuses.

machine2.jpg
 

speedstar

Well-Known Member
View Badges
Joined
Sep 18, 2018
Messages
704
Reaction score
1,030
Location
Grand Rapids
Rating - 0%
0   0   0
Some new visuals: I'm finally on working out the tooling for machining the case top lids for the power outlets and mounting screw
Nice way of making what you have work, seems like a really cool project, much cleaner that my DIY box with whips. I'll have to read back some to get the whole scope.
 
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Working on the CAM files still for milling, and ordered a few more stock pieces of aluminum to work with (mostly 12"x12" 1/8" and 1/4" plates).

Last week I put together a quick revamped design based on the same exact CPU and I/O layout as the power bar to give my poor little freshwater cube light a proper LED controller and driver - it uses a long 100V string (x2) of Yuji 150mA LEDs. I'll put up design files, but the process gave me an inspiration to whip up another small toy, a top-off, dosing, or other level controller. Its small: fits in a small 50x80mm case, and gives 4 I/O ports which can either support a float sensor, or power (with PWM) a 12V pump. Also features a MXPV7002 pressure sensor which can be used a level sensor via pressure tubing.

As I said, its the same exact MCU and I/O structure, which means it effectively shortcuts the slowest thing for me to do, which is write firmware (I do software for a day job... so I try to keep things to a minimum :)). The goal would be for it to run stand-alone, or be directly controlled by Reef-Pi as is the 8 port power bar. And since that firmware is now in a useful shape, it means this project has some hope.

Again:
- Reef-Pi USB control
- CAN bus to extend USB (same protocol, same messages, same bus broadcast architecture)
- 4 ports which can act as either an input (12V->Signal) or a 12V output, with PWM (speed control). No reversal.
- Pressure sensor acting as a level sensor.
- Small aluminum case, pluggable terminal block.

board.png

case.png


The donor design was this AL3066 boost mode LED controller:

hv.png


Which runs this revamped LED array, which is basically cobbled together from custom board with 28 5038 Yuji LEDs, a little heatsink, two sections of MakerBeam, and a 3d-printed tank glass bracket which pockets the MakerBeam:

tank.jpg
 
Last edited:
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
First prototype of the work holding tool for the power strip case, in this case the base plate. The idea is to have a repeatable fixture to hold the lid, meaning I can "crank" some lids and holes in a small amount of time without spending forever on setup.

This prototype is done on a scrap of 1/4" 6061, about 8x6" (its an off cut scrap). The intent is to use a piece of MIC6 tooling cast aluminum.


m1



The bulk of the work was done with a 1/4" 3-flute 38 degree aluminum end mill. The detail work required a smaller tool - I had actually made a mistake and undersized the extra well, which meant I had to use a 2mm tool - however, it would be quite possible to use a 1/8" in the final version.


m2



I cut the cavity and did a quick fit check - its in a useful tolerance. I still need to design a work holding setup for the plate - probably a plate I can screw on top clamping the piece to cut as though it were a clamshell.


m3




 
Last edited:
OP
OP
theatrus

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,957
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Where have the months gone! Some life events made a few periods of not much attention (all for the better in the end!), but back to the projects.

First off, some bad news. I was doing a bit of prep for getting the power bar certified (minimum FCC, looking at the scope and liability for electrical safety), and figuring out a few odds and ends.

Part of that process was scoping production, which hit some key snags: the processor on the board is currently expected to be available in inventory... in July... 2022. A whole year lead time, with no inventory to speak of anywhere except for the ~20 or so I have as prototypes. I'd just swap, except, well, its everything and every similar processor out there. STM32, SAMD/E, you name it, unless you have a bunch sitting in stock, you're not getting any. The trickle down effect of the chip shortage is not just high end processors and GPUs, its the little stuff getting pushed off.

I'll be continuing some interesting builds in the interim as I love exploring, but right now things remain in stasis for the power bar controller pending supply chain updates. When supply chain clarity happens, I'll work on finding the right purchase/group buy model for this and outsource the bulk of the fabrication.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,281
Location
Edmonton, Canada
Rating - 0%
0   0   0
Nice to hear the wheels are still in motion but sad to hear about delays you can't control. This chip shortage is definitely real and I agree the little stuff is getting pushed off. When I first heard this 6+ months ago I never expected little old me would ever be affected, boy was I wrong. I can only imagine how many have been hurt much worse. The PCA9685 that you could get by the wheel barrel is out of stock everywhere, lately I've been getting a few from here and there but no stock until 2nd quarter 2022 and I have a feeling dates will be pushed as we get closer and as you know there's no alternatives. Same with the ATtiny85, only MLF package available as they are a bugger to program, it's getting scary when these chips feed you.

Looking forward to seeing some builds in the meantime.
 

High pressure shells: Do you look for signs of stress in the invertebrates in your reef tank?

  • I regularly look for signs of invertebrate stress in my reef tank.

    Votes: 36 31.3%
  • I occasionally look for signs of invertebrate stress in my reef tank.

    Votes: 28 24.3%
  • I rarely look for signs of invertebrate stress in my reef tank.

    Votes: 21 18.3%
  • I never look for signs of invertebrate stress in my reef tank.

    Votes: 30 26.1%
  • Other.

    Votes: 0 0.0%
Back
Top