Software Engineer, Linux Enthusiast, OpenRGB Developer, and Gamer

Lemmy.today Profile: https://lemmy.today/u/CalcProgrammer1

  • 0 Posts
  • 74 Comments
Joined 4 years ago
cake
Cake day: June 9th, 2021

help-circle



  • Finally some good news from GitLab! I switched when MS bought GitHub but all the news from GitLab since that point has been some form of “we’ve severely nerfed our offerings for open source projects”. This, however, will make GitLab better for FOSS as people from across other platforms can contribute. If Gitea and others also support this then GitLab may start to crack. If GitHub also implements this then we won’t need accounts there to contribute.


  • PinePhone is $150. The more appealing option long term will be getting Linux running well on old Android phones though, as they are available used for $100 or less and have better specs. Often better specs than even the $400 PinePhone Pro, which is the most powerful designed-for-Linux phone I know of.

    I’m typing this on a OnePlus 6T running postmarketOS. I paid somewhere around $125 for this phone, with box and accessories and in very good condition. It has an 8 core processor, 6GB RAM, Vulkan-capable Adreno 630 GPU, better WiFi/Bluetooth than either PinePhone, much better battery life, and a very nice OLED screen.

    It’s not all perfect yet though. It doesn’t support VoLTE yet in Linux, so you have to force 2G mode to be able to receive calls and texts. Call audio is sometimes missing. No camera support. No USB host mode support. Sensors are WIP, but I’m testing the merge request for them and rotation works.

    I ran a PinePhone and then a Pro for a year each. I think I prefer the OnePlus 6T experience. If they get the modem issue figured out it will be an amazing option.


  • We built the layout when DCC was first coming out after going to a train show. We ended up picking up one of Digitrax’s first systems (Empire Builder IIRC, with DB150 base station). That’s still what we use for DCC. I designed a LocoNet to serial adapter (MS100 compatible, but very cheap and simple) in college (2010 ish) and we’re using that to connect it up to a Pi 3 running JMRI. Our layout is HO scale. N scale is probably too small for even a Raspberry Pi Zero with camera module, as the setup barely fits on an HO scale car.

    I have set up a DCC++ Ex setup at my house for testing and experiments. Just got a loop of EZ Track on the floor with an Arduino as the base station and another Pi with JMRI that is configured similarly to the real layout.

    Here is an early picture of the camera car design with the servo. I’ve since condensed everything on to one car with a custom 3D printed design. I want to publish it eventually but haven’t had time. I even 3D printed trucks with power pickups in my latest design (just had to buy metal wheel sets to put in them). I also made a tiny Python webserver that has buttons for different servo positions so you can easily move the servo from a browser.

    https://files.mastodon.social/media_attachments/files/110/456/482/672/249/884/original/398d0e7f581517cf.jpg

    https://files.mastodon.social/media_attachments/files/110/456/483/176/756/180/original/3434f015434fb542.jpg

    https://mastodon.social/@CalcProgrammer1/110456485998532640

    For the DCC controlled turnouts, lights, and turntable, I built up an Arduino Nano based DCC decoder from a design I found online and a DCC decoder library that is available in Arduino. Since the layout spans multiple tables, instead of putting a DCC decoder for each table/PCB I just had the one decoder echo the DCC commands as serial messages over a serial bus that spans all the tables. The other boards (turnout controllers, light controllers, and turntable controller) all just have their RX pins wired to the decoder’s TX and can receive commands that way. Turnout controllers are a mix of SG90 micro servo based ones and L293D motor drivers for Tortoise switch machines. Light controllers use transistors to switch 12V outputs on and off to drive bulbs and LEDs. Turntable controller is an EasyDriver based stepper controller with some pre-programmed position offsets for each turntable track (each track position is mapped to a DCC function address).





  • My dad has been into model trains since before I was born. We built a train layout in the early 2000s when I was in middle school or so. Working on that project helped get me into electronics as we made PCBs for signals and control circuits. Now, 20 some years later, I work in software engineering. My dad wanted to get back into working on the layout and I’m helping him with Arduino programming and Raspberry Pi stuff. He built a stepper motor controller for the turntable and then we built some turnout and light control boards that interface with DCC. We set up JMRI on a Raspberry Pi to drive trains from phones and automate stuff. I also got him into 3D printing and he’s printed a ton of new scenery for the layout after buying his own Ender 3 after using mine quite a bit. We’ve learned various CAD/modeling programs to make 3D prints.

    I also finally got to do something I always wanted to do as a kid, which is to drive the trains from a first-person view. We have gone through a bunch of different variations of putting a Raspberry Pi Zero and camera module on an HO scale railcar. We did some different designs. Our latest design uses an SG-90 micro servo to control the camera angle so you can look left and right. I also 3D printed an enclosure for a regulator, battery charger, and battery that takes track power and powers the Pi.

    It’s pretty fun to be able to sit on the couch with a phone, watching the view on the TV, and drive the train from the other room including operating turnouts. Haven’t yet tried to drive the trains over the Internet yet but I want to, since I live a state away from my parents where the layout is.

    Edit: Here’s a video of the camera car in action! https://www.youtube.com/watch?v=Ls-Rg1TlDOA



  • I’ve had good luck buying phones on eBay. I bought a OnePlus 6T last fall that was in box and practically brand new because the 6T has good Linux support, phone arrived and worked great. I just bought a OnePlus 6 because it too is well supported on Linux (postmarketOS) and doesn’t have as big of a notch, good condition but minor OLED burn in. Problem is that the previous owner didn’t realize that PIN lock remains over factory reset so it was locked. I managed to find an unlock procedure before the seller got back to me with the PIN and it’s working fine now (though I think I will stick with Android on this one after all).




  • I wouldn’t call myself the world expert on Sonix these days, haven’t messed with it in over a year. I occasionally check up on the Sonix hacking discord and it looks like some people over there are still making progress, have rebased to master and such. I have been focusing on OpenRGB itself mostly and once the Sinowealth boards started coming out I kinda lost interest in keeping up with SonixQMK since it felt like the work we were doing was getting undone.

    I did try to JTAG a Sinowealth keyboard but thus far have been unsuccessful in talking to the chip. I would at least like to dump its firmware.


  • Problem is a lot of vendors that used to use Sonix/EVision chips have switched to Sinowealth or other chips during the chip shortage and haven’t switched back. They do this without changing the model numbers. Sinowealth’s chip is inferior in every way and does not have any QMK port so if you get stuck with a new PCB revision you’re screwed.

    I can’t recommend anyone try to buy a Sonix/EVision board anymore for this reason unfortunately. It was awesome when every cheap keyboard on the market had one of these chips though.




  • Instead of just stating this as the inevitable future, why not join us in realizing that this is a problem and push to do something about it? We all realize that physical media and ownership of content is going away, but we can push back by not buying into subscription models and buying what physical or at least one-time-purchase digital content we can while it is still around.

    Your new car may not have a CD player, but external disc drives are still readily available. Buy up a CD collection (of lossless, DRM-free music I might add) and rip them all to FLAC files and keep them on today’s dirt cheap giant hard drives. Now you can play them on your phone, car, laptop, Steam Deck, retro iPod, smart fridge, etc.

    Same goes for DVDs and Blu-Rays. You have the option to convert them into whatever format is needed for the device you want to play them on because YOU OWN THE MEDIA and can do what you want with it.

    Be the change you want to see. Cancel Netflix and Spotify. Buy CDs and DVDs/BDs. Build a local collection and have DRM-free content on all your devices that will be available to you for the rest of your life rather than for the rest of the month.