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
Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Skarsnik posted:

You can even power it straight off the usb port of a router

That is goddamn brilliant.

E: I'm looking to get an rpi to drive my Apple TV via impersonation of a Bluetooth keyboard, my TV via some gross REST protocol, and failing that via IR. I'd like it to be USB powered, and I'm not sure what I need in terms of GPIO to do wifi + Bluetooth + IR emitter. I'm a bit lost in all the variants available.

Subjunctive fucked around with this message at 14:44 on Jul 7, 2016

Adbot
ADBOT LOVES YOU

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Paul MaudDib posted:

The easy fix is to put some eMMC on there like the clones, but that might make it cost $2 more per unit and they have to keep that sweet marketing going regardless of their product's quality or reliability.

Would an eMMC/SD adapter alleviate this? You wouldn't maybe get the full perf, but you'd get the storage lifecycle behaviour.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Paul MaudDib posted:

But again, all of this begs the question of why you aren't just getting one of the clones and getting onboard eMMC, a real SATA channel, USB 3.0, etc. A $60-70 device that comes with an adapter that just works and onboard eMMC offers a very similar total cost of ownership to the RPi and is just going to be a nicer device.

Point me to such a clone? Especially if it has wifi and BT.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨


Awesome, thank you.

E: several of those look like they do SD but not eMMC. Or are you suggesting SATA and external power for the drive?

Subjunctive fucked around with this message at 16:17 on Jul 7, 2016

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Baconroll posted:

I want to get an Amazon Echo to tell me the value for various temperature sensors running off a Raspberry Pi - but I don't want to poke an incoming hole in my firewall.

I'm thinking of having a cron job on the Pi to periodically push the current temperatures onto some external webspace, and then write an Alexa skill using a Lambda function which would get a temperature value from the external webspace.

It doesn't cost much for a small amount of webspace, but I was wondering if I'm missing a trick here ? Is there an 'easier/free' external place I could write/read some numbers to ? The amount of data is probably going to just be a few bytes, so getting a gig of webspace feels like overkill.

Take a look at Amazon's SimpleDB, you can likely just stash the values in there and get them from Lambda.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Jago posted:

I couldn't get linux to succesfully do hardware video decoding with it. Now I just use it for torrents, unifi and other lightweight administrative tasks. Using windows 10 of course.

Do you have a guide for running unifi on a Pi? All the ones I found are quite elderly.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

doctorfrog posted:

I wonder about Retropie: is there a time savings or possibly a life savings for the SD card if I unzip my (completely legally obtained and stored) ROMs? In other words, does anyone know if the files are simply read through the zip file, extracted in RAM, or extracted in a temporary directory? How would I go about finding this out?

You could strace the player, but it's almost certainly unzipped into memory. It would be harder and slower to do the unpacking to disk properly.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

eschaton posted:

If the emulator will mmap() the files it would be reasonable to keep them unzipped so they only occupy address space, not real private memory. If it doesn't then don't bother.

My understanding is that the images get patched in place, but under memory pressure the idles pages of the ROM buffer can get paged out, so it's likely a wash anyway.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Super Slash posted:

Are there any out there who have used either the HiFiberry Digi+ or JustBoom Digi pHATs?
After ridiculous amounts of testing and futzing around I'm pretty sure my TV just can't can't passthrough audio streams over HDMI to my amplifier, so I can only use SPDIF/Toslink for surround sound with TV/Movies using LibreELEC.

None of those nouns are real, are they?

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

ItBurns posted:

It's not a solution, per se, but it significantly reduces the likelihood of having issues.

The whole concept of "computer reliability" is one of probabilities. Adjusting the odds is the best you can do.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Seems like you should be able to do it with qemu or bochs or similar.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

I'm looking to do some DIY home automation, bridging zwave to my skylight/blind. Per FCC filing, the remote is using 2.4GHz. I can find 2.4GHz modules, but they seem to be designed to talk proprietary protocols to their peers and not send arbitrary data. I can find 433MHz general-purpose transceivers, which will help with the fireplace, but nothing that looks appropriate in 2.4GHz.

Does anyone have recommendations for 2.4GHz transceivers (or transmitter/receiver pairs) that can send arbitrary data? I'd love one that was a GPIO-riding add-on board, or a HAT, but I'll figure out how to wire a separate module inside the case.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

SniperWoreConverse posted:

The chips I've seen (not really that many to be honest) all look like they do one or a few different specific protocols. I'd look at it from the other direction and try to see what chip and protocol they use, then find chips that can work with that, then try to find if there's an add-on with one of those chips. I know NXP has chips that can do like 6 different protocols but there's no guarantee that it can do the one you need and I have literally no idea if they're any good.

If it's a TI chip it can be a real pain in the rear end and act lovely if your implementation is lovely. I guess that goes for everything though.

Do you know if that's usually in FCC filings? I could go dig there.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Yeah, I'm happy to have two modules, I just can't find any for 2.4GHz like the general purpose ones for 433MHz. HackRF is definitely more than I really want to pay right now, and the cheaper variants like RTL-SDR don't go high enough.

The Z-wave stuff I have sorted out, just getting an Aeon USB adapter for now. I might move to Arduino once I have it working, but it'll be easier to bring up on the RPi.

Weirdly, the remote doesn't show up in the FCC search, though the skylight motor seems to, and all that company's products are in the same band.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

I have a naive electromechanical question, if you'll indulge me.

I'm building a Pi that can control something in my house, via 433MHz remote control impersonation. The transmitter is a little circuit board about 2 inches on each side, with 3 pins. I'd like to figure out how to enclose the whole thing within a case, rather than have a breadboard dangling off of it. Are there shields that will help me here, or do I need to wire it up with tiny wires and leave it loose within the case? The GPIO pins that I need to connect to (one data, VCC, GND) aren't adjacent on GPIO, so I guess it might not be possible, but I'd really like something tidy if I can manage it.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

ante posted:

Look up Pi Cobbler on AliExpress/eBay. It's a breakout with a ribbon cable for a couple bucks, keeps stuff clean.

Perfect, thank you!

I can probably do this with an Arduino in the future, if I get a Z-Wave shield/whatever for it, but I figure it'll be easier to get going with a Pi.

E: do you know of a case that could contain the cobbler and a Pi, with a couple of inches of headroom on the cobbler breadboard for components?

EE: https://www.buyapi.ca/product/modmypi-modular-rpi-b-case-black/ looks like it can do what I want! Now to find or make shorter gpio cables.

Subjunctive fucked around with this message at 17:10 on Jan 20, 2017

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

apropos man posted:

I once had an HDMI cable spark a little bit when pushing it in. The sparking came from the "D shaped" surround on the connector and it was a really old lovely TV that belonged to an ex girlfriend. It's possible that the equipment you're plugging in could be causing a short or a sort of semi-short. This mainly applies if you're using a really old lovely TV or an old HDMI cable, though. It's a bit of a long shot.

What's a semi-short? I'm new to this stuff.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

apropos man posted:

Hah! What I meant by inventing a new type of electrical fault was that due to the poor quality of the cable and/or the TV, then the sparking wasn't present every time, just sometimes.

Ah, that makes sense. Thanks!

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

wolrah posted:

You can also do "variable=value; command" as a one-liner

No, you have to leave the semicolon out.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

doctorfrog posted:

I have a 400+MB "core" file on my Pi. Is it a core dump and can I delete it?

Type file core and it will tell you. But almost certainly yes and yes.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

xtal posted:

Three of my eight raspberry pis are idle right now, anyone got any cool ideas before I fill my apartment with cameras?

Get a Z-wave stick or shield and start the journey into home automation. :homebrew:

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

xtal posted:

I feel like all the cool home automation stuff requires permanent modifications​ to the place which I can't do since I rent

Light switch replacement is reversible, but there are also plugs and bulbs to work with. If you have a dumb fireplace or similar remote, you can also learn to impersonate that.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Do you think the burglars will operate in the dark, or turn lights on?

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

How is the Zero W using less power on 1080p playback than the Zero?

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Android on x86 is well-supported these days at least as a development environment. Intel clings to it.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Drivers, I assume.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Chromebook?

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

What does echo $SHELL say?

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Hmm, OK. How about echo $TERM, if you're still seeing the arrow-key behaviour?

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Oh, sorry -- I misread.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

It's a living.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

On the Pi, is there a way to control whether a USB port is powered or not? I'd like to use one to turn on/off a device that is just powered by USB. Maybe an Arduino would be better, but I think it'll be easier to do the zwave stuff from a Pi.

E: I can find ways to turn off the bus power for all of the USB, but that would take out the network and zwave dongle, so that's not great. Maybe I need to get a second USB hub on there.

Subjunctive fucked around with this message at 15:16 on Oct 12, 2017

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Space Gopher posted:

Why not just switch 5V power with a relay?

The device in question is set up for USB, and I was hoping to avoid snipping wires. Perhaps I misunderstand what you’re suggesting!

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Malcolm XML posted:

Show us the circuit

It’s an LED strip that is powered off a USB port. I want to turn the +5V line off when I give a zwave command. I’m not sure what there is to draw, sorry. :(

Subjunctive
Sep 12, 2006

✨sparkle and shine✨


That’s interesting! I’ll look into that, thank you.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Double post, but:

Is there a way to get a second USB bus onto a Pi of any flavour? I'm not sure if there's enough bandwidth through GPIO to drive that, though I only need low speed. Googling only gets me information about adding ports to the existing controller, though I might be missing a keyword.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

wolrah posted:

It should be possible to run one of these https://www.maximintegrated.com/en/products/interface/controllers-expanders/MAX3421E.html on the SPI bus. There does appear to be support for that chip in the Linux kernel.

Interesting, I’ll see if I can find something with one of those on board.

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Malcolm XML posted:

Is the USB port connected to mains or something else? If it's mains, just use a zwave switched plug thing. If it's a port, you will need to be able to shut off the port power which can be done by making an "interposer" type board with a bistable latching relay on the power pins of USB. You will need some way of getting zwave to toggle the relay states


(Aren't you an engineering manager? How do you debug without code? ;))

I’m a VC now, I’m not even allowed to read code.

I may be able to make it work with a switched plug. I was hoping to have it automatically go on and off related to the TV and room lighting states. I may be able to program that into my zwave hub thing, I’ll have to look. Otherwise I’ll look into the relay option with a USB zwave dongle.

Thank you!

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Oh yeah, I’ve heard about HA. I bought this Pi originally to control my electric fireplace via zwave, and I have 433MHz rx/tx widgets for that. I can probably do that part with Arduino though, if I get WiFi on it.

This has given me a lot to think about!

Adbot
ADBOT LOVES YOU

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Do you mean MHL? I thought the HDMI pin 18 power went from source to sink, and only 50mA at that.

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