scottbez1 / splitflap

DIY split-flap display
https://scottbez1.github.io/splitflap
Other
3.15k stars 259 forks source link

Large Display (>12 characters) #66

Closed barkerb1 closed 4 years ago

barkerb1 commented 5 years ago

Any thoughts on scaling beyond a single Arduino? Would a Mega or Duo board allow for more controllers per micro-controller?

My initial thought would be to use a RasberryPi to daisy chain each Uno's 12 characters and also serve as a small web server for remotely controlling a large display. I'm going to start with connecting 4 controllers (16-char) and two Uno's so I can start working on the Pi. If successful, I plan to integrate it with my Google home and scale up to something big enough (100+ char) to display Tweets, song titles, news headlines, and stock tickers on command.

SamWarmuth commented 5 years ago

I'm working on a build using an ESP32 and MCP23017 i2c port expanders (16 GPIO pins per chip). You can use up to eight expanders to get 128 GPIOs. The ESP32 is a lot faster than an Uno, so you should be able to drive more steppers concurrently —  not sure how many it would max out at though.

Semi-unrelated, but if you're going to be running that many characters, you might want to take a look at the TPL7407L for driving the steppers. It uses NMOS transistors instead of darlington transistors, it should use significantly less power (and run cooler).

scottbez1 commented 5 years ago

The 2 main limits of the Uno are memory and clock cycles. A Mega won't help with the clock speed constraint so I don't think you'd be able to add many additional modules, if any. Both the Due and ESP32 are likely good options for controlling more modules, though connecting multiple Uno's to a Pi should also work fine if you've already got those handy. For a big display with 100+ characters you'd probably want to drastically rethink the electronics to make it easier to build/control and cheaper (this design is really optimized for small hobbyist production).

barkerb1 commented 5 years ago

@scottbez1, I'm not thinking of building something commercially viable, simply a one off display to hang on my wall with the added cool factor when I have guests over of being able to talk to it. Using a Due is intriguing, if it could run at least 6 controllers (24 characters, one row) per board then I would only need 4-5 to run the whole display and would only need marginal tweeks to what you've already created.

@SamWarmuth, I'd be interested in possibly using the ESP32 if you're willing to share your fork of the project. Honestly, I'm trying to put as little time investment into the electronics as possible so I can invest my time into the software and connecting it to the cloud, which I'm also willing to share if anyone wants it.

I just finished soldering the boards for 16 characters to begin experimenting, happy to collaborate if anyone's interested.

peazley commented 4 years ago

@barkerb1 @SamWarmuth have either of you made progress for supporting a larger set of characters? I'm really curious about using an ESP32 for this.

SamWarmuth commented 4 years ago

Unfortunately I haven't had a lot of time recently to work on this in the last few months.

I ended up designing my own PCB that uses an ATTiny88 and a TPIC6b595 to drive two displays, controlled using an ESP32 over I2C. Since the ESP32 is just sending high-level commands to the ATTiny (e.g. "Move to position 13"), the CPU load is really minimal. The only issue you'd run into is the max number of I2C slaves, which is 127. But that just means you need one ESP32 for every 254 characters you want to display (or maybe come up with a more complicated I2C hierarchy).

I also ended up redesigning the spool/enclosure to be fully 3D-printed, to save on assembly time/effort/price (I own a printer). My estimate using this system was that I could get the price-per-display down to $6 or $7. I haven't had time to clean everything up and build more than a couple of the displays. I'll have more time to work on projects like this as it gets colder out and I spend more time inside.

Unfortunately it's not in a great place to share right now, but if there was some interest I could try to get something published.

Here are a few pictures showing the different parts:

Driver PCB dual-driver-pcb

Fully 3d printed spool/frame: 2019-04-18 09 23 46

With numbers: IMG_4849

benlongo commented 4 years ago

Hey Sam, thank you so much for publishing this awesome project! I’d love to see the new designs you have been working on, even if they are in quite rough form.

SamWarmuth commented 4 years ago

Splitflap is all scottbez1's work, I'm working on a new build that takes a lot of inspiration from his. I'll see if I can get the files in a better state and publish them soon.

scottbez1 commented 4 years ago

Cleaning up old issues. I think the main questions have been answered here. Please comment or open a new issue if you still have outstanding questions, thanks!