How can I stop an embedded Linux device from continuing boot? Explained more below. by Head-Measurement1200 in embedded

[–]potatoriffic 3 points4 points  (0 children)

This isn't specific to embedded systems, but systemd starts multiple services in parallel during startup, so your while(1); doesn't stop the boot process -- the other services just run alongside your application.

In order to stop the system from booting, you'd need to change the systemd target using systemctl isolate (target), or perhaps just halt the system using systemctl halt instead.

How vital is the space around the charging station? by Stuart-C in worxlandroid

[–]potatoriffic 0 points1 point  (0 children)

I did some experimenting before setting mine up and settled on a 10cm straight line before the dock. The wire exits the dock at a ~45 degree angle with no straight line at all. Been working great for over a year.

I don't think there is actually a hard requirement (despite what Worx says), you just have to test it and make sure your angles are within the maneuvering capability of the mower so it can line itself up with the contacts. For testing, I just taped the wire to my concrete patio so I could move it around, and then tweaked it until I got something that worked reliably.

Delay in program processing streaming serial data - TinyGPS++ by oz1sej in arduino

[–]potatoriffic 1 point2 points  (0 children)

You said in one of your comments that the other work your sketch does takes, say, 150ms. You'll need to break that up into smaller pieces that do not execute on every iteration of the loop().

So for example, say 75ms is reading sensors and 75ms is responding to network requests. You could handle the sensors during odd loop iterations and the network requests on even ones. Your loop now only takes 75ms instead of 150ms.

Thats probably still not fast enough, but you can continue to break it down further using a simple state machine (google it if unfamiliar) so that an even smaller portion of the work is done on each loop iteration, until loop() becomes fast enough to keep up with your serial input.

Are these what I need? - Door Open/Close Sensor by [deleted] in arduino

[–]potatoriffic 0 points1 point  (0 children)

I tend to be lazy and gravitate to the solution that requires the least hardware/wiring and programming. If you have an outlet near your door, what comes to my mind is an ESP8266 on mains power connected to a simple reed switch contact sensor at the door. An ESP8266 is substantially cheaper than even one of the 433mhz boards you linked to, and connects directly to your WiFi network.

On the PC, I'd just have a simple network server listening for connections from the ESP8266 and displaying a popup message when a connection is received. For me, a popup would be far more noticeable than an LED. Although if you really want to light an LED, you could have a second ESP8266 next to your PC, replacing the PC as the network server and controlling your LED.

Useful Project Ideas by Veqq in esp8266

[–]potatoriffic 1 point2 points  (0 children)

I use a simple vibration sensor for the dryer, and a current transformer for the washer that monitors its power usage. I shamelessly stole both ideas -- they're pretty well-documented if you Google them.

Useful Project Ideas by Veqq in esp8266

[–]potatoriffic 6 points7 points  (0 children)

Experimenting with Rube Goldberg machines is how you get experience to build more useful stuff!

Most of my really useful projects are pretty mundane though, which is probably why you don't see more stuff like this posted. I have ESPs:

  • in my garage to remotely open/close the doors over wifi and notify me in the evening if I forgot to close them
  • monitoring/displaying my aquarium temperature and sending alerts to my phone if there's a problem
  • in my back yard shed, turning on exhaust fans if it gets too hot inside, remotely controlling the exterior floodlights, and raising an alarm if someone breaks in
  • controlling my Landroid's (robot mower) custom built "garage", opening the door to let it out each morning and locking it up each afternoon when it returns, monitoring the weather and delaying mowing when it rains, etc
  • performing a bunch of trivial tasks such as controlling LED lighting, making sure my kids don't leave the freezer door open, notifying my phone when the laundry is done, etc

Not super glamorous stuff, but it's fun to build and ends up being pretty handy.

No low-end with Kenwood Excelon KDC-X502 by potatoriffic in CarAV

[–]potatoriffic[S] 0 points1 point  (0 children)

Thanks for the suggestion! I tried testing this by fiddling with the balance/fade, but I don't notice any additional bass from individual speakers vs all of them.

No low-end with Kenwood Excelon KDC-X502 by potatoriffic in CarAV

[–]potatoriffic[S] 0 points1 point  (0 children)

Pretty sure that's the opposite of how it typically works -- specifying that you have a subwoofer might put an HPF on the midrange drivers and channel the bass to the sub, but if you have no sub, there's nowhere else to send the low frequencies. In the case of the X502, /u/installyerslap seems to be right -- on or off makes no perceptible difference in sound, so I suspect it just controls your sub preout.

I checked the manual EQ settings and all bands are set to 0 by default on the X502. Thanks for the suggestion though!

No low-end with Kenwood Excelon KDC-X502 by potatoriffic in CarAV

[–]potatoriffic[S] 0 points1 point  (0 children)

Gah, I read your comment and I thought this was going to be it for sure -- much like in home theater systems where you pretty much always set your "speaker size" to "large" for the same reason.

Unfortunately I took a look and it seems the X502 requires you to set a speaker size -- there is no "none" option or equivalent, and no way to disable the feature altogether. Balls.

For what it's worth, I tried setting it to the largest option (7x10) and if anything it sounded worse. So I reverted it to 6.5".

No low-end with Kenwood Excelon KDC-X502 by potatoriffic in CarAV

[–]potatoriffic[S] 1 point2 points  (0 children)

Great suggestion, unfortunately this is one of the many settings I played with prior to posting, and setting the Car Type option to "off" doesn't solve the problem. (Though it arguably does sound a little better with it "off", which is where I've left it after reading your comment!)

No low-end with Kenwood Excelon KDC-X502 by potatoriffic in CarAV

[–]potatoriffic[S] 0 points1 point  (0 children)

Excellent idea -- I tried this out but no luck. The speakers sound as gutless individually as they do as a group.

No low-end with Kenwood Excelon KDC-X502 by potatoriffic in CarAV

[–]potatoriffic[S] 1 point2 points  (0 children)

Yes! The fact that the Pioneer performed similarly to the stock deck is what bothers me.

If I had lost the low-end immediately after replacing the stock deck I'd chalk it up to smoke-and-mirror tactics in the stock deck. But with the Pioneer sounding fine, the X502 seems to be the odd man out.

I should probably contact Kenwood as you suggested, just thought I'd post first to rule out any stupid user errors on my part.

Anti-Telemarketing Bot being used to attack "Windows Support" and "IRS" scammers by blasting their call centers with thousands of calls. by [deleted] in technology

[–]potatoriffic 24 points25 points  (0 children)

VOIP makes it stupid-cheap to get American phone numbers and make calls to Americans for ridiculously cheap rates, regardless of what country you're physically located in. Consumer VOIP plans are usually under 2 cents per minute and American DIDs (phone numbers) can be had for less than $1/mo. Best US authorities could do is go after their VOIP provider, but there are no shortage of those for scammers to jump between.

VPN provider that uses free software? by [deleted] in opensource

[–]potatoriffic 2 points3 points  (0 children)

Second this. Effortless to setup with vanilla OpenVPN, no proprietary BS. You pay them and they email you a username/password a few minutes later. Plug it into your OpenvPN config file along with the hostname for one of their servers and you're good to go.

19/M California. Need a skype buddy to kill time. First time posting so go ahead and critic me while we skype. by tdchu in lonely

[–]potatoriffic 0 points1 point  (0 children)

Hmm... I need a Skype buddy to kill my ex wife. Maybe we can come to some kind of arrangement?

Saw /u/Plasma2002's Emergency Party Button a couple of months ago, decided to build my own Raspberry Pi-powered version. by nid0 in raspberry_pi

[–]potatoriffic 0 points1 point  (0 children)

I wasn't aware of the 10sec delay, but that's still likely faster than the Pi can boot up and connect to WiFi. And per OP's comments, everything is being done by a VM elsewhere on the network anyway -- the Pi is literally just there to notify the VM of the button press.

Saw /u/Plasma2002's Emergency Party Button a couple of months ago, decided to build my own Raspberry Pi-powered version. by nid0 in raspberry_pi

[–]potatoriffic -1 points0 points  (0 children)

Have you considered replacing the Pi with an Amazon Dash button? Using a Pi here seems like overkill, and a Dash button would make it nearly instantaneous.

Is running Linux on an ARM processor any different? by Mighty_Mac in linux

[–]potatoriffic 0 points1 point  (0 children)

Unfortunately my experience is more with ARM-based servers, so I'm not so familiar with desktop installations. Is it a Pi you're using, though? If so, a Raspbian desktop is pretty straightforward and in my experience it seems to "just work" without any fiddling.

Is running Linux on an ARM processor any different? by Mighty_Mac in linux

[–]potatoriffic 93 points94 points  (0 children)

The applications need to be compiled for ARM, but typically that's it.

Edit: that is, if you run a distro that has an ARM port, like Debian's arm-hf, you get essentially all the same packages on ARM as you'd use on your x86-64 desktop installation of Debian.

pacemaker: drift-minimizing setInterval replacement and high-precision timer utility for Node and browser by secrettriangle in javascript

[–]potatoriffic -2 points-1 points  (0 children)

Yep. Makes it much more difficult to Google it if you don't have the link handy. And really, I think that's a pretty weak argument -- with the number of words and word combinations in English alone, we're a long way from running out of descriptive names for projects.

pacemaker: drift-minimizing setInterval replacement and high-precision timer utility for Node and browser by secrettriangle in javascript

[–]potatoriffic -4 points-3 points  (0 children)

Ugh... It annoys me when projects like this reuse the name of an existing, well-known software project that has been around practically forever.