Jump to content

Arduino and Raspberry Pi Projects Thread


Recommended Posts

gavino200
2 minutes ago, chadbag said:

 

 

You might just be able to double click it or something in the GUI.  Don't know how the linux GUI things work with shell scripts.

 

That's what I expected. I really only have experience with Windows/Mac, mostly windows. I wasn't able to find an icon anywhere and I tried double clicking files. No luck. 

 

Actually this was is pretty simple. And if I have to use Bash script, there's no reason not to run the lite version of the OS (which seems only to have the terminal - no "desktop"). 

 

I'm happy with this for now. Next step will be to get it to run automatically on boot. Then redo the whole thing with the lite OS (maybe). Then connect it to the DR5000

 

Thanks so much Chad!!!!!

  • Like 1
Link to post
gavino200

I found some guidance on the beginners RasPi forum and now I have a menu item I just click on it to open iTrain. 

 

Now I just need to work out how to get it to run on boot up. A quick search shows lots of results, so this should be doable. 

 

image.thumb.png.0a6434fd722c5a4e6a2fd467f75b60db.png

Link to post
gavino200

I'm interested in trying this as a RasPi project. It's a guide to making your own VPN. It's described as a weekend project, but would undoubtedly take me about a month. I think I could probably do it, and I think the knowledge gained would help me with my train related network issues. 

 

There are many reasons to use a VPN but I have only one. I like to look at regionally restricted copyright material. Specifically I want to access Mexican Netflix from the US. I've tried to do this with multiple commercial VPNs. It hasn't been possible since 2016 when NF upped it's game seriously. Amazon too. They shut you down almost immediately. Also there aren't enough people who want to do this to make an attrition approach worth it for the companies. They do it for an outside in approach to the US but not for a low demand inside out use like US -> Mexico.

 

So I'll need to find out if this approach is likely to work for me. I probably need to learn how NF shut down the commercial VPNs and see if this approach has any advantage. If it does I'll try it. It should be sort of fun.

 

 

Link to post
gavino200

A small but important milestone today. I finally got my first "Non-arduino" to work and take a sketch from the Arduino IDE. This is an ESP32 Devkit C. As far as I understand it has a faster chip than an Arduino, more memory, and also has wifi. Full disclosure: I've been trying to get this thing to work for a couple of weeks! 🤣  It took a while for me to understand how the IDE filing system works. Also, some of the download files from the maker "Espressif" don't work until you install python!

 

I began to wonder it this was a dead board. But I was sure I hadn't done any of the things known to kill a board. And as this board is a genuine one from Espressif rather than a knockoff (that will be next - they're cheaper), I figured it was ok. Finally, the effort paid off. 

 

This is just a simple LED blink sketch. I also tested the wifi by having it scan my home network. I'll leave it at that for today. Next I'll try to get it to do something potentially model related. 

 

VKWgAnX.jpg?1

  • Like 2
Link to post
gavino200

I managed to use these instructions linked on Marc's Shin-Yukari blog to access the ESP32's internal filing system. It didn't work for me yesterday, so I tried it again today with success. This is step one of getting the ESP32 to display an image on a small OLED or TFT screen. I'll leave it there for today. Next up will be connecting the display to the ESP32 and preparing a test image. If this works I'll have a tiny screen ready to be included in a future modelling project. 🙂

 

Below you can see the serial monitor showing the contents of a text file that I placed in the ESP32's memory. The goal will be to place an image there and have it displayed on a tiny screen. 

 

image.thumb.png.28fbae0f4a4cee4138db80c2b2ba75b3.png

  • Like 1
Link to post
chadbag

I ordered a Pi system -- not for train stuff but for home automation.  However, I may play around with it with train stuff for a while since it is mostly for after our house is done. I got it now so I could figure out how it works and test it with a few cheap cameras I have but in general it won't be used until the house is done.

 

 

I may try and see if the Digikeijs admin apps will run under WINE.

 

  • Like 2
Link to post
gavino200

Awesome. Post your projects. I'd love to see them.

 

BTW there's an odd glitch with the Pi 4. If you use a VNC viewer to control your Pi remotely as a "headless" unit, you need to go into the "Sudo raspi-config" and change the screen resolution from default to something specific. If you don't it wont boot. It just gets confused trying to decide what resolution to choose for no screen. 

 

 

  • Like 2
Link to post
Madsing
6 hours ago, chadbag said:

not for train stuff but for home automation

I have an old Pi running OpenHAB (https://www.openhab.org/) for years. Great for home automation. Very stable. It’s also somehow connected to my layout. The Pi running the layout’s LEDs and sky lights is also able the dim the room’s light. That’s something that impressed my wife 😀.

  • Like 2
Link to post
chadbag
12 minutes ago, Madsing said:

I have an old Pi running OpenHAB (https://www.openhab.org/) for years. Great for home automation. Very stable. It’s also somehow connected to my layout. The Pi running the layout’s LEDs and sky lights is also able the dim the room’s light. That’s something that impressed my wife 😀.

 

Thanks for the pointer.  I'll be running Homebridge on it since my home automation is all HomeKit based, but OpenHAB looks interesting for oddball things that may not have HomeBridge adapters and it claims to interact with it.  I just took a quick look at it so am not sure of the particulars.

  • Like 2
Link to post
gavino200
Posted (edited)

Getting back to this after being sidetracked by a few home projects. This is the most success yet. I have my RasPi desktop on the tiny TFT screen. Now to work out how to get a video file onto this thing and play it. 

 

I also worked out how to make an image of the SD disk (the Pi hard drive) after setup. This way I don't have to go through the rigmarole of setting the Pi up again and again when I encounter problems. With the Pi Zero that's painfully slow, though from a modelling point of view the small size will more than make up for the slow speed. 

 

IZNyrV5.jpg

 

These are the GPIO pins to use.

 

hGlHLmo.png

 

Raspbian commands can be found in this page.

Edited by gavino200
  • Like 4
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...