#Minty Mobile BBS
1 messages · Page 1 of 1 (latest)
The proof of concept is very much #notabomb candidate. Using a raspberry pi 3, seeed xiao s3 sx-1262 and 22500 mAh battery bank I had lying around. The bbs is fork of Hops https://github.com/booyaa/Hops
Hops is a Meshtastic bot that responds to dot commands. - booyaa/Hops
I’ve just ordered a USB shim so I can plug the radio into a pi zero. We can look at proper battery UPS later on.
This is awesome!
To be honest, I think I might have been inspired you or someone else 😆 definitely someone with a pi zero and radio.
There's a few around 😉
Forgive my ignorance, could you get it to send a message when it see's a node like "You have just passed Meshtastic9I03! See you later!" So passers by know that they have been in the vicinity of you?
Could do, something but more passive is to set your long name. I’m reluctant to spam. Also noticed most mesh BBSes require you chat to them via DM rather than spamming the channel. I’ll probably set the long name as a hint it’s a BBS
Meshing around has a proximity sensor module
basically watching position data to see if a node enters a particular place
I had ideas for a treasure hunt using it
That’s cool thanks. Also that’s tonight’s rabbit hole.
Yes, we have an entire field of rabbit holes.
Step 1. Find some hardware in the ‘hardware drawer’
Step 2. Start reading.
This my favourite bit, under powered computers finding a new use as the brains for radios. I would love to do this in a Linux native form or even a custom firmware with the bbs on a mcu device.
I seem to think that spuds meshing around and tc2bbs have the ability to sync with other BBS nodes. That appeals to me. Especially if said nodes are linked via MQTT
yeah, we had big ideas at the end of last year for syncing mesh nodes, so the limits of the mesh protocol didn't limit the reach of the messages.
there's still time for 2025 to be the Year of the Linux Node 😉
Just got a USB shim (I would’ve bought the UPS but it lost out to the new RTL-SDR). Got an enclosure upgrade! #notabomb one of the boxes that my Heltec v3
Oh, that's a usb shim! I didn't know what that was called.
Honestly, I have so many adaptors I could probably connect anything to anything.
Probably super cheap at alib https://thepihut.com/products/usb-to-microusb-otg-converter-shim
The usb is too chunky though won’t fit the minty tin. I’ll have to see if I can do serial over the gpio. I wonder if can talk to the Meshtastic API over gpio? I suspect might need to use the serial module
It may be time to consider a hat.
Bought a UPS hat. I think the pogos aren’t connecting well because the i2c battery monitoring isn’t working. Might try working up manually to GPIOs to verify it’s not a dodgy board. Seriously thinking about decoupling the Wio SX-1262 from the ESP there’s enough examples of pinouts in meshtasticd this would save a lot of battery usage and avoid this unseemly cable
Fixed the i2c, dropped the pi and the hat on the floor and that seems to have caused the data pogos pins to make contact with the pi. Lol
Load Voltage: 3.728 V
Current: -0.485 A
Power: 1.807 W
Percent: 60.7%
Percussive maintenance
Really need to get this sx-1262 wired up to the pi directly. When it’s used with the ESP MCU via USB it can drain a 1000 mAh in less than 3 hours. Just doing a test without it plugged in I’m about to go pass 3 hour mark and there still over 50% battery capacity. (1 cpu core and no hdmi). Those ESP are very power hungry ( this is a known fact tho)
Yeah. You want a hat?
What like a protoyping hat?
Yes. Might have something incoming soon™
Ooo yes please. Will there be soldering involved?
Only if you want.
I’ll give it a miss, I haven’t done it for decades. I’d like to do it again but this stuff is so small I think I’d struggle to get the on done
I take it this has happened because so many people keep asking which pi hat they can use?
Yes. There's not much about ATM, although I have it on good authority that there are "things in the works."
Sweet
But yeah, I need to bang out a DIY design anyway, to scratch an itch.
Excellent I will keep an eye out!
4:41 hours without the power hungry xiao hanging off the end. 2 extra hours on a 1000 mAh battery
a very noddy data logger: watch -n 60 'echo $(date +"%F %H:%M:%S";uptime -p) >> uptime.log'
tom has pointed me at this thread because i am about to start making a pi node :p
~5h on 1000mah is promising given i plan to put ~6000mah in
Yeah my ups hat (c) looks like it’ll only take 1000 mah of you want it to fit the footprint of the pi zero. If you don’t mind a bigger battery hanging outside then you’re golden
#enclosures-discussion message so much room for activities
Yeah I might have painted myself into a corner because I want it to fit a mint tin. I think I still can well see. If I can just use the radio rather than have an esp I can work with ~5 hours. Especially if I pair down the OS and use rust for the BBS software but that’s just yak shaving at the moment
Inspired by mesh-bbs high ferric content I wanted to pull data from ups-c hat ina219 using rust. I hope to add this as a patch so the BBS carps about low power and then shutdowns gracefully https://gist.github.com/booyaa/5cf18e66b41e96ffba920c405c8414c0
Poking the INA219 battery monitor using something rusty - hello-battery.rs
The Linux native fw should be able to read the INA directly, but it doesn't get used as battery voltage yet, I think
What I like about the pi format is that it's ~business card size
I have a project box that holds a huge number of business card boxes, and it's handy to be able to sort my unfinished business.
Yeah I’m waiting for someone to do a DIY Meshtastic tracker using CM and crazy internal antenna using PCB shenanigans (probably impossible)
Mind you it’s always the battery that’s gonna kill your builds practicality
So when we did tests on the Femtofox, it draws 0.3-0.5W
Idk if there's much you can squeeze out of the pi0, but 1W sounds about right.
Yeah I need to buy a proper reader will probably do once the main build is finished. Would like to be specific
Is Femtofox is based on a micro controller rather soc? (not that I know the difference asides a pi can run an OS where as pico can do one thing). I seem to think someone has shoehorned Linux on a pico calc
Yes, Femtofox uses a luckfox Pico mini, which has an rv1103 soc, which just about runs python
The Pico calc works with a luckfox Pico not-mini
Although I'm not sure if Mark productionised his build
Noticed that the radio USB connection kept dropping (the radio has its own MCU so appear active) . This meant the BBS stopped working. Turns out one of the USB cables must be causing electro magnetic interference (EMI). I’m blaming USB cable charging the UPS (plugged into yet another Pi). I’ve switched the USB cable to a dedicated socket on my extension cable and also stuck the Pi back in its travelling box. Never seen this before. I’ll have to find out the best way to shield the pi because once the Pi’s hub disconnects the device you can only resolve using a reboot.
Good idea thanks!
Getting a little epaper screen today and more importantly some m/f jumper leads. Hoping to wire up the sx-1262 directly to the Pi (well via a bread board) this should hopefully mean a longer battery life.
After a bit of jiggery poker I got my epaper display to work! Now time to write some helper to make it easier to display things on it. This is the demo app
Minty Mobile BBS
Spent the afternoon wrassling with pillow (pil’s successor). The mesh related stuff in place holder text but the rest is coming from the pi. I think I might need one of those IDE cables because the height of the pi plus ups and display hats is pretty tall now. Also need to wire the radio! That USB cable is causing all kinds of EMI.
I’m gonna make a sleep screen so when the pi has been shutdown it’s on display with a QR contact or something.
nice!
Thanks I love this ePaper/ink display especially since it stays on even when the pi is off !
I got one of these somewhere
Testing a new workflow to work on epaper graphics offline because refreshing the display can take up to 50s on a pi zero 2 https://github.com/booyaa/hello-waveshare-epaper-display/blob/main/README.md#creating-new-graphics-without-an-e-paper
50s? Oof....
huh? monochrome eink refresh is usually pretty quick
and their table says 2s refresh
oof i'm seeing about 350mA on my pi zero 2 now with wifi up
You can expect between 100 mA idling to 500 mA when all four cores are running. I really should’ve got that usb metre to get real readings. Pretty certain my UPS gives various power readings I know it tells me volts 😂
that was battery current off ina, so probably a bit lower 5v current
maxcpus didn't seem to really change it, though, so not sure
Should do according to Jeff https://www.jeffgeerling.com/blog/2021/disabling-cores-reduce-pi-zero-2-ws-power-consumption-half
But as I’ve found out stuff can sometimes act weird on one core (MeshBBS needs at least 2 cores)
So it can play doom? Or Tetris could be played at tea time 🫖
Yeah I’m pretty certain someone has run doom on it. And made a minty box version
Ah no it was the pico 🤣
Need to wire this up to run before shutdown
Not a mint box per se but I think it’s of a similar size. Time to see if it fits. I’m hoping I can do something clever with the display like sticking it on the lid. Need access to the pins for the radio otherwise I’d have left it as is
Remember a raspi is only 2mm wider than a standard business card
Just a quick fit test nothing actually wired up. The screen or the UPS have to be detached a wired differently non hat or pogo pins. But it “fits”
It will close if I remove either the display or ups. I could
Dremel the tin lid to make space for the display but it feels like cheating
Really need a proper usb meter but according to the ina219 on ups hat I’m drawing 891 mAh irrespective of if I’m on 1 or 4 cores on the pi zero 2. I suspect Jeff’s measurements are way more accurate. The seed xiao is drawing over 500 mAh on top of just the pi.
The ina219 is telling porkies cause I’m getting at least 2 hours with the radio on
Is it definitely a 100mohm shunt?
How would I know? Presumably in the spec of the hat? Not really sure where to look https://www.waveshare.com/wiki/UPS_HAT_(C)
are you reading it yourself or from meshtastic
schematic says 0.01R, which is 10 mohm
Reading it myself using the i2c python script provided by wave share
I’ll know who’s tell porkies when I get that meter. I like the rust interface cause it auto converts from Ah to mAh but both (rust and python) scripts are giving different current readings so taking it with a pinch of salt
mA (instantaneous current) or mAh (which is a charge unit) ?
the python script looks sensible
Cool thanks, still finding my way around this stuff
Okay time to stop fannying around and try wiring up this Wio sx-1262 from my seeed xiao kit to the pi. Took a photo of the underside of the board I’m assuming these are the pin assignments. I’ll find the recommended meshtasticd configs that were suggested in #meshtasticd
Immediately distracted but I think I can use this cable that came with my display to reposition my e-Paper display! There’s an alternate port I’m assuming for non 30 pin raspberry pies
Damn I think I might have fried my display. My gpio hat go plugged in off by one. I’m assuming I might have exposed the odd pins for the hat to 5v (which is on the even pins on the pi)
Good news the raspberry pi spi isn’t dead. Found this neat tool, compile it and join mosi (pin 19) and miso (pin 20) to make a loop back. So long as everything gets echoed back you’re golden https://github.com/rm-hull/spidev-test?tab=readme-ov-file
Well, golden or have other problems ..
lol nothing like a bit of random
Well random to me, bleeding obvious to a electrical engineer
As an eternal optometrist gonna try the 8 cable connector. In the hope that I only burnt out the gpio hat side 🤣
Not good news?
Fraid not
Oh dear.
It wasn’t very expensive just annoyed first time I’ve fried something
yeah i fried one of my brand new radio hats plugging it in wrong while it was on >_>
Oof
Also something I learnt about my ups is that you want to keep it off (it’s got a proper off switch) so there’s no way power can come through. I think plugging in a hat is enough to wake a shutdown pi if you’ve got the ups / battery pack plugged in. Still error on my part for plugging in wrong, but having your pi go on randomly as you’re plugging in stuff is probably not good
If you’re using Debian you know how old some version of software can get (unless you’re on testing). Useful repo with useful tools especially for raspberry pis https://packages.azlux.fr/
Also if you haven’t seen https://pi-apps.io/about/
Raspberry Pi App Store for Open Source Projects.
Ooo no that’s a new one on me!
Egads that took a long time to get round to doing. Testing a “watchdog” script to shutdown the BBS if we’re about to run out of juice. It’ll eventually send out a message on the channels it’s watching and be wrapped up as a systemd service
lol I really should rewrite the code to use the python libs, but I really love standalone binaries. Doesn’t make sense if you’re wrapping them in a python subprocess
Isn't systemd the modern way? I'm so confused
Kinda want the bbs to be the sole systemd service should make it easier to install
Assembly writers feel the same about Borland 
I like to strike wires to push bits around the pi
I think turbo pascal was my first compiler. Everything else was interpreted before then
So my new kit arrived the usb dongle thing is a male (needed a female to connect my xiao s3 lora) and the usb-c uart (on the gpio) does want to play nice with my usb-c cable. I think this might be a seeedio xiao issue though
I only needed one of them to work
What's going on in this stack?
I just stacked the usb-c connector so I could have them in the same shot. Id prefer to use the usb one which looks like it reroutes the pi usb mini data to the other side cause it keeps the stack height low.
What are the different adaptors? Serial to usb?
The usb-c is serial and power https://thepihut.com/products/adafruit-piuart-usb-console-and-power-add-on-for-raspberry-pi
Here's another super handy add-on for your Raspberry Pi computer, perfect for 'head-less' setups! The PiUART adds a USB Type-C to serial connection so you can use any serial port software to connect to the Pi's console. It plugs in and is fast and easy to add whenever you need to connect to your Pi. Two LEDs connect to RX and TX on the serial co...
I’m just looking to not have a big usb (plus usb mini shim) sticking out of the side which make it’s impossible to fit in a mint box.
This looks interesting
Yeah other device is just too chunky and gets in the way of the ups. Oh well. Gonna just need to go for a slightly bigger case. Might be able to get a flat or L shape usb to usb c data cable to reduce the protrusion. But to be honest I just need a bigger case. Here’s the other dongle https://thepihut.com/products/solderless-zero-dongle-for-raspberry-pi-zero
There's really no easy way to hook up a pi, is there?
This is the best I can do for now. Might go for a long cable so I can get a proper antenna on the side of the box . Yeah not unless it’s custom jobby
I've got an expander board that turns a pi zero into a pi4 layout
Quite nifty
The micro usb annoys me more than I remember
I didn't used to mind them, but I've been spoiled with decent connectors.
It definitely annoys a lot of people I’ve seen lots of designs to replace the data port with a full sized usb lol
I love the pi zero form factor I think you’re golden if you can either use pogo pins and the gpio. It gets ugly when you have to use those infernal usb ports
Is the pi? TBH honest I’m not sure. The ups hat’s pogo pins covers the first 6 pins so that could be 3.3 or 5v. I really do like that use of the pins though. Keeps your gpios free for one more board like a fried epaper display 😭
Rev 1 - ups hat (1000 mah battery, seeed xiao lora starter kit and stubby from a heltec v3 (which is my base node that got a recent antenna upgrade).
Good news I didn’t fry my paper display. I think installing MeshtasticD may have clobbered the existing SPI bindings. I had to start with a new OS as part of the troubleshooting process with waveshare and that’s when I worked out what happened