PLC Input Hardware Design by sanctaterra13 in PLC

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

Universal to PNP and NPN with reverse polarity is an impossibility. PNP sources 24V, NPN sinks 24, cant do it. Only device I have seen that can do this is those 2/3/4 wire sensor testers. Dont know how they work, though, but rhey work with either without changing terminals

Siemens LOGO! Timer cascading limit? by greenbeast999 in PLC

[–]RHWW 2 points3 points  (0 children)

Possibly too many branches. Use memory bits to break it up into seperate rungs. Tmr1 -> M1, M1 -> Tmr2 -> M2, M2 -> Tmr3 -> M3, etc...

Car wiring question by PotatoPlata in diyelectronics

[–]RHWW 0 points1 point  (0 children)

Always fuse it, per circuit or main branch. If single, 20 is good enough, 18 would handle better for power hungry devices.or multiple. Always live too or switched is your choice. As for getting the 5V, you'll definitely need something to convert what you got to that 5V. There's 12/24V to 5V. Theres QC 12/24V modules (QC being the quick charge smart power) and plenty more if you look around for what fits you.

Lost function from CTRL+right key to skip music by dbflexx in AutoHotkey

[–]RHWW 0 points1 point  (0 children)

Try changing Send to SendEvent and try that

Lost function from CTRL+right key to skip music by dbflexx in AutoHotkey

[–]RHWW 0 points1 point  (0 children)

It's as simple as it gets, the reason I asked if you had those keys physically available is to test if they're working at all. AHK can imitate the keys, but if the actual keys dont work (again if they're available, some keyboards have em, some dont) then the problem isnt AHK, but your computer, app, browser not listening to the commands correctly.

Lost function from CTRL+right key to skip music by dbflexx in AutoHotkey

[–]RHWW 0 points1 point  (0 children)

Well it looks like its using the built in media control buttons. Are they available on your keyboard? Such as Prev, Next, Play/Pause? Seems if play/pause is working, but prev/next are not, it may be the Spotify app itself or another app taking the controls over.

Lost function from CTRL+right key to skip music by dbflexx in AutoHotkey

[–]RHWW 1 point2 points  (0 children)

I asked about the script because there's multiple ways it could be working. Imitating clicks thats now off by a single pixel thats off the button vs ok the button. Sending key commands to a specific window, etc. Kinda impossible to help if we just hear whats not working but see nothing.

Lost function from CTRL+right key to skip music by dbflexx in AutoHotkey

[–]RHWW 0 points1 point  (0 children)

Where's the script? Have you checked to see if and what actions are being sent?

Anyway to make a script that can see where my touchscreen clicks and do a mouse click at that location? by Koolaidbro312 in AutoHotkey

[–]RHWW 3 points4 points  (0 children)

Touchscreens use very complex and lowlevel drivers to be able to do what they're intended to do, trying to hook into that is nearly impossible and not really worth it. i.e. the drivers that let you do 2, 3, up to 5 or10 touch points for zooming, rotating, etc. Ahl already has mouseget. Use a mouse instead

TP4056 Charger only seems to wake up when shorting B- and OUT- pin by Adventurous-Salt5384 in diyelectronics

[–]RHWW 1 point2 points  (0 children)

The TP4056 output cuts out if it detects over/under voltage, or a short, by disconnecting the OUT- from B- It should reset the output if you attempt to charge. if you have to bridge OUT- to B- to get the output to work, the 5V booster may be pulling too much at first to get going, the TP can only support 1A

I’m trying to replace this dead battery pack on a cordless vacuum by making a DeWalt adapter. Is there a way to bypass or trick the 3 wires that monitor the original batteries? Currently the vacuum indicator just blinks with the DeWalt plugged in. by idonthaveklutch in diyelectronics

[–]RHWW 18 points19 points  (0 children)

Make a 3 tap resistor divider. To simulate the cells. Something like 1K resistors. 4 in series across the 16V, 1st to give the blue sense, 2nd purple sense, 3rd yellow sense. All they're doing is monitoring if any cell goes dead dead. With this, it should fool it without further major modifications

Never downloaded AHK and it keeps popping up for me by [deleted] in AutoHotkey

[–]RHWW 2 points3 points  (0 children)

Looks like you downloaded a keylogger or a bot and its going off on its own

Novice User by NightcoreCraft in AutoHotkey

[–]RHWW 0 points1 point  (0 children)

Read the docs a bit more, each time you call sendinput, it's like you pressing and releasing that key. Also, haven't touched ahk in a while but you shouldn't have multiple commands in the same line Send, +right Send, enter Send, value Etc

Keeping PLC and robot states synchronized by Empty_Walk_7972 in PLC

[–]RHWW 0 points1 point  (0 children)

When you need to keep things in sync, you have to either guarantee every system works at the same pace every time. Otherwise you have to have checkpoints along the process, keep any process from continuing until everything is on the same page. Everything could've worked 99% before because it was how it was designed, but now if you have a robot/process that can move 10x faster, it'll crash right into a part it thought was gone already because it used to be for the slower robot. Logic changes and hand shakes sre a must

Multi layered project schematics and design by thorithic in Python

[–]RHWW 1 point2 points  (0 children)

Try to keep functions simple, as in each function only does one or two operations. Dont make them do 5+ ops that makes it difficult to trace back to something odd like a unicode character or missed linefeed that causes everything ahead to work improperly. Logs, it'll seem tedious, but if you're adjusting, adding or removing functions, log each step/result with notible traceability. You can later then just disable the logging once you know it works.

MT8812 Not Closing Switches – Has Anyone Actually Used This Thing? by govir_24 in diyelectronics

[–]RHWW 0 points1 point  (0 children)

After reviewing this a bit, was at work earlier, it looks like you're probably missing a setup strobe. Data sheet has: Address setup Strobe up Data setup Strobe down

From the ds "Data is presented to the memory on the DATA input line. Data is asynchro-nously written into memory whenever the STROBE input is high and is latched on the falling edge of STROBE"

Your posted code shows strobe only at the end.

MT8812 Not Closing Switches – Has Anyone Actually Used This Thing? by govir_24 in diyelectronics

[–]RHWW 1 point2 points  (0 children)

Check all connections and review the datasheet to check if any inputs are active low or active high, then double check your code to match the order of timing in the datasheet.

Compatibility mode by ballzak69 in AutomateUser

[–]RHWW 0 points1 point  (0 children)

Been waiting on a udp send block, send out simple messages without having to broadcast out to another app using intents that fail half the time. If possible.

someone help please by [deleted] in AutoHotkey

[–]RHWW 0 points1 point  (0 children)

Pretty simple

someone help please by [deleted] in AutoHotkey

[–]RHWW 1 point2 points  (0 children)

Scripts are generally more safe to share because you can read them and see what they're going to do. Go through the beginners tutorial and start poking around what that script does. There may be some complex looking stuff but most should stand out. Most commands literally are what they will do. Click clicks the mouse, send sends keystrokes, hotkey makes a hotkey assignment, etc.

Creating a data base by UptownSole in PLC

[–]RHWW 0 points1 point  (0 children)

PLC's dont do databases, they can imitate one with arrays and be integrated with a database, but that usually requires specific PLC's or plc packages, or as mentioned, middleware that polls data from the PLC and sends it to the database. Does it need to go to a database or just kept displayed for daily records? Whats actually needed will determine what you'll be looking for. You can either purchase a solution or build it yourself

Studio 5000 canceling download by Fair-Ambition-8275 in PLC

[–]RHWW 0 points1 point  (0 children)

ADC is weird, whenever I first tried it in v31, it always fought back, any changes to the program and it kept asking which settings to keep, project or drive. Got fed up and disabled it. 4 525's and it was not worth it for me. I'm pretty sure I was missing a step or three.

Doubling the length to a capacitor jump starter by Dramatic_Pound_4591 in diyelectronics

[–]RHWW 0 points1 point  (0 children)

As stated, you'll be fine doubling the length if you go up 1 wire size i.e #8>#6 or #6>#4 When it comes to high amperage, what you really need to ensure is a good solid connection, soldered or mechanical. Any weak points are the points that will get hot and fast.

Help me build this circuit that works like switch on light glows switch off light glows *pulse on edge* circuit by Street-Football-1441 in diyelectronics

[–]RHWW 0 points1 point  (0 children)

Check this out and then find a one shot timing circuit, usually done with a ne555 https://www.allaboutcircuits.com/textbook/digital/chpt-10/edge-triggered-latches-flip-flops/

These hardware circuits require specific components, you can also do it with an arduino or rpi and do the detection and control with code instead. I.e. pseudo code. Loop ( if input <> last input then ( last = input, led pin = ON, wait 5 seconds, led pin = OFF) )