Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Splode
Jun 18, 2013

put some clothes on you little freak
I still don't really get the Pi Pico stuff. There are so many good microcontrollers out there already. Plenty of established brands, with big communities, good tools, and an excellent migration path from cheap low end to expensive high end, as well as from hobbyist to professional. The Pi microcontrollers just seem like a dead end as a result. At least with a proper Pi you can move to a different Linux computer with not that much effort, so it isn't a dead end for hobbyists only.

Adbot
ADBOT LOVES YOU

Splode
Jun 18, 2013

put some clothes on you little freak
I buy atmels for hobby stuff because Arduino saves so much time and ST for work stuff because they're cheap and the toolchain is very very good. Both are suitable for both hobby projects and serious product design.

Pi stuff is super vulnerable to supply crunches and also has that embarrassing hobbyist vibe when you see it in a proper product(like the Atmel328P)

Splode
Jun 18, 2013

put some clothes on you little freak

GreenBuckanneer posted:

is it still impossible to buy a pi4 at msrp?

I see amazon selling them for $150 and lmao gently caress that

I know someone who just bought one for $140 AUD with accessories from a local (Australian) supplier, so there is stock trickling in. However I watched the pi zero W go in and out of stock in a matter of seconds at the same supplier, so things are still very bad. I don't expect it to improve much for at least 12 months.

Splode
Jun 18, 2013

put some clothes on you little freak
Hey thread, I've got an issue with a raspberry pi zero W.
Here's the setup:
The Pi is plugged in to my tv via the USB gadget, and a custom USB cable with no power lead. According to the TV, the Pi is a USB thumb drive.
The Pi itself is powered by an official raspberry pi power supply (5V, 2.5A) which should be far in excess of the power it needs.

It is hosting an SMB sharefolder that allows me to remotely add files to the "USB drive", so the TV can access them.

Now, everything is working but after a few days, I am coming back to find that the Pi is powered off (nothing on WiFi, no "USB stick" in TV, LED off on the board). I have to unplug and replug the power cable to turn it back on.

I've had a little bit of a look in /var/log/ at syslog, syslog.1, messages, messages.1 but I can't see anything to do with a deliberate system shutdown.

Any suggestions about where to look, or speculation as to possible causes?

I guess it could be overheating? I have it the "official case" red and white enclosure, but it doesn't have a heatsink. It's in a closed cupboard, but it doesn't seem particularly warm in there - and besides, isn't this thing meant to be low power?
I don't think it's browning out, as the power supply is overspecced for it.

edit: I am going to (attempt) to turn on the hardware watchdog for now and see if that makes the problem ignorable.

Splode fucked around with this message at 13:03 on Aug 13, 2022

Splode
Jun 18, 2013

put some clothes on you little freak

Warbird posted:

Is that doesn’t work, the SD card could be going out. Did you set up log2ram and the other usual suspects for hardening the writes?

I did not, this is my first pi based project. I'll look into that thanks

Splode
Jun 18, 2013

put some clothes on you little freak

Warbird posted:

Not a worry. Pi’s are great little things but SD cards are not great but serve as a decent means to an end. Lots of weird behavior can usually be accounted for either: power weirdness or SD card weirdness. Log2ram cuts back on how often your system is writing logs to disk by storing them in RAM and doing periodic writes. This does have a bit of overhead in memory, but it’s pretty minimal. Similarly if the pi loses power unexpectedly you may lose some logs, but that’s usually an acceptable risk.

Yeah I hate SD cards. This is a brand new card, but at 32GB it's entering the territory where they start trading reliability for capacity. I'll set up log2ram and back up my image again.

Splode
Jun 18, 2013

put some clothes on you little freak
Yeah one of the key lessons of rpi clones is that genuine raspberry pis are actually pretty good value. The clones are half the price but half as good.

I'm hearing a lot of buzz about RISC-V (at work too), and here I thought ARM was going to take over everything!

My pi zero W is behaving now the Watchdog has been set up. I haven't checked the logs to see how often it's rebooting, but tbh I don't care. I've just set up log2ram (thanks for that advice!) and I'll put it back into service soon.

Splode
Jun 18, 2013

put some clothes on you little freak

VictualSquid posted:

I know about the low power. The heart of my audio system is a Pi0W that runs of an old 500mA charger I got for free with my first smartphone. Which is why the Pi0 is the best Pi.
Didn't know that you can power it through both ports. That is seriously cool.

If it didn't need to be shut down gracefully this feature would be a lot more useful

Splode
Jun 18, 2013

put some clothes on you little freak

PBCrunch posted:

Please Jesus let the next Raspberry Pi have at least the option for 16 GB or so of reliable onboard storage. Most microSD cards are dogshit and it can be tough to find the good ones because of counterfeiters.

Agreed

Splode
Jun 18, 2013

put some clothes on you little freak

Mirconium posted:

Hey, I'm trying to do some basic logging off a few thermocouples via python or rust or whatever, what's the most painless way to get started on something like that? I have basic electronics knowledge and middling programming knowledge, but I don't know what the ecosystem is like right now. It looks like a raspberry pi pico w might be good for this? Can you get one of those to stream data off itself somehow? (or is the workflow more like it saves a log file on itself and then you download it?)

Also will it have the power to read the voltage drop across a thermocouple using only its own GPIO pins?

Would I be better off looking at an arduino?

Edit: also I if I did want a fully-fledged computer rather than a microcontroller, it looks like raspberry pis themselves are pretty unobtainium right now, is there a reasonable alternative?

If you want to measure thermocouples you'll need a thermocouple amplifier. You can get these as anything from full products that do everything you want out of the box, to little arduino compatible modules.
If you don't need it to be thermocouples, you could use NTCs instead. These can be read using a regular analogue pin (on something like an arduino - I don't think raspberry pis have analogue inputs), which may be easier.

Going with an arduino, it'll be easier for you to get a single reading from the thermocouple, and pretty easy to have it spit out readings on the serial terminal. If you want it to run independently from a computer, it'll be quite a lot of work - and you'd need something like an sd card module to even have anywhere to store the data.

The raspberry pi approach will have no issues storing the data, but it'll be trickier to measure the thermocouples (or NTCs) in the first place. Once you've got the readings working, the rest will be easy.

So basically, it depends on where you'd like the challenge to be and what your specific requirements are.

Splode
Jun 18, 2013

put some clothes on you little freak
What about the beagle bone boards? Are they a suitable alternative?

Splode
Jun 18, 2013

put some clothes on you little freak

Cojawfee posted:

I have a Dell thinclient for an extra linux computer and it's a lot easier to deal with than an RPi, since it's is x86 it can run anything. If you don't need GPIO, an actual computer is usually going to be better than a pi.

Also you can always pair up an SBC with a microcontroller/Arduino, and get GPIO that way.

Splode
Jun 18, 2013

put some clothes on you little freak

tuyop posted:

Trying to make a cat food control system because I have one cat who needs special $$$ food and two cats who LOVE special $$$ food.

Here are my two cats


Honda (the one who does not need the $$$ food)


Lucy (who does)


Based on the similarities in their appearance (or the state of individual animal detection), does anyone think it's feasible to have a RPi4 2Gb identify whether a given cat in front of a webcam is Honda or Lucy and then execute an action (basically activate a servo)?

My other option is to go hog wild with some frankenstein RFID system and see if a collar will work or pay to get a cat chipped.

Edit: Getting creative here, I could also put a reflector on a collar and it looks like I can scan a photo the webcam takes for that colour maybe using Pillow's ImagePallette module?

I looked into this problem myself - my cats were eating each other's food. In my case the cats worked it out amongst themselves and I didn't care anymore, but not before I'd done a fair bit of research into how I'd make bowls.

The approach I looked at was scanning the microchips that are already in the cats.

First of all, this product exists: https://www.surepetcare.com/en-au/pet-feeder/microchip-pet-feeder

But if you want to make it yourself, you can get an RFID reader that can read pet tags (annoyingly they don't use the common rfid frequencies, so you need some pretty specialised hardware): https://m.aliexpress.com/item/32847058721.html?gatewayAdapt=4itemAdapt

I don't think facial recognition would work without you basically building your own database, as your cats look very similar and all the facial recognition algorithms are trained on people. Google photos built in one doesn't do a great job of my cats, and they're totally different colours.

Double check the pet microchip frequency used in your area - I chose this one for Victoria, Australia. It seems pretty common but there are a few systems in use around the world.

Splode
Jun 18, 2013

put some clothes on you little freak
TBH if raspberry pi died and was replaced by a more open source alternative, that would not be a bad thing, and would prevent this kind of shortage ever happening again. Even in the peak of the supply disruptions it was still very easy to get Arduino compatible boards, because everyone is making them.

Splode
Jun 18, 2013

put some clothes on you little freak

cruft posted:

Follow-up question, if anybody knows: it was my understanding that the SD card interface is SPI. Like, 4 pins, straight up, just SPI.

Assuming I'm working on good information, is it typical in a SBC like a Raspberry Pi to have a dedicated controller chip, maybe with an interface to the system bus? Or do they just run 4 traces directly into the SPI pins on the CPU?

You can interface with an SD card with SPI, but you use a full SDIO bus if you want to interface with it properly

Generally this bus comes straight out of the CPU, sometimes you might have some ESD protection and/or level shifting in between.

Splode fucked around with this message at 19:23 on Mar 7, 2023

Splode
Jun 18, 2013

put some clothes on you little freak

priznat posted:


Kind of a derail but man it’s a real balancing act for IT depts between enabling engineering and locking it down for security.

I'm yet to see an IT that doesn't just utterly fail to balance this and just locks everything down. Engineering then just works around them with sneaky policy breaking solutions, which usually end up being far less secure than whatever compromise could've been worked out.

Splode
Jun 18, 2013

put some clothes on you little freak

Raygereio posted:

https://www.raspberrypi.com/news/behind-the-scenes-with-raspberry-pi-5-magpimonday/

This reasoning seems weird to me. How having to design & produce a non-standard power supply capable of 5V/5A, better or cheaper then using standard industry parts?

Also I hope they actually check if the plugged-in cable has an e-marker chip and is capable of carrying 5A. The board isn't likely to draw that much current constantly, but still it doesn't seems like a great idea to use USB-C cable rated for 3A/10W with this board.

Oh for fucks sake.

I swear to god the raspberry pi project has some of the worst hardware engineers on earth.

I don't know why they're so scared of switchmode power supplies, but they really need to start following standards. The old "you have to use a genuine rpi power supply because we're drawing way too much current" was a pain in the rear end for years, and they have learnt nothing from that even now USB PD has given them an elegant solution.

I wish there was a mechanism that punished them for this kind of non compliance, it shouldn't be legal to sell poo poo that deliberately does not comply with the USB standards.

Splode fucked around with this message at 22:20 on Oct 9, 2023

Splode
Jun 18, 2013

put some clothes on you little freak

Cojawfee posted:

It's truly hilarious that they get close to making a good product every time and then decide to poo poo their pants at the last minute.

I honestly wish they'd just fail completely and give room for someone else to make The Standard embedded Linux platform

Splode
Jun 18, 2013

put some clothes on you little freak
so while technically compliant, you'll still be stuck buying specific power supplies for your pis, except now they'll cost more, and be even more difficult to integrate into more complex systems

Adbot
ADBOT LOVES YOU

Splode
Jun 18, 2013

put some clothes on you little freak

coconono posted:

I had similar problems and it turned out to be a bad SD card

New thread title?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply