Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
9.76 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.05 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +magazine: App\Entity\Magazine {#264
    +icon: Proxies\__CG__\App\Entity\Image {#245 …}
    +name: "askelectronics@discuss.tchncs.de"
    +title: "askelectronics"
    +description: """
      **For questions about component-level electronic circuits, tools and equipment.**\n
      \n
      Rules\n
      -----\n
      \n
      1: Be nice.\n
      \n
      2: Be on-topic (eg: *Electronic*, not *electrical*).\n
      \n
      3: No commercial stuff, buying, selling or valuations.\n
      \n
      4: Be safe.\n
      \n
      ---
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 154
    +entryCommentCount: 1230
    +postCount: 1
    +postCommentCount: 4
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729413608 {#274
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#236 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
    +entries: Doctrine\ORM\PersistentCollection {#179 …}
    +posts: Doctrine\ORM\PersistentCollection {#137 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
    +bans: Doctrine\ORM\PersistentCollection {#116 …}
    +reports: Doctrine\ORM\PersistentCollection {#102 …}
    +badges: Doctrine\ORM\PersistentCollection {#80 …}
    +logs: Doctrine\ORM\PersistentCollection {#70 …}
    +awards: Doctrine\ORM\PersistentCollection {#1360 …}
    +categories: Doctrine\ORM\PersistentCollection {#1792 …}
    -id: 11
    +apId: "askelectronics@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
    +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
    +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "askelectronics"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727247714 {#268
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#270
      date: 2023-06-19 05:13:29.0 +02:00
    }
  }
  +image: Proxies\__CG__\App\Entity\Image {#1970 …}
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
  +title: "Shift register > Relays - inconsistent results when load is attached to relay"
  +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
  +body: """
    First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
    \n
    Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
    \n
    So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
    \n
    And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
    \n
    Any guesses as to where I need to put some capacitor(s)? Thanks!!
    """
  +type: "image"
  +lang: "en"
  +isOc: false
  +hasEmbed: true
  +commentCount: 7
  +favouriteCount: 7
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1689481805 {#2418
    date: 2023-07-16 06:30:05.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1961 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
  +badges: Doctrine\ORM\PersistentCollection {#2436 …}
  +children: []
  -id: 748
  -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
  -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1688468656
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/463783"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688419656 {#1858
    date: 2023-07-03 23:27:36.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +magazine: App\Entity\Magazine {#264
    +icon: Proxies\__CG__\App\Entity\Image {#245 …}
    +name: "askelectronics@discuss.tchncs.de"
    +title: "askelectronics"
    +description: """
      **For questions about component-level electronic circuits, tools and equipment.**\n
      \n
      Rules\n
      -----\n
      \n
      1: Be nice.\n
      \n
      2: Be on-topic (eg: *Electronic*, not *electrical*).\n
      \n
      3: No commercial stuff, buying, selling or valuations.\n
      \n
      4: Be safe.\n
      \n
      ---
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 154
    +entryCommentCount: 1230
    +postCount: 1
    +postCommentCount: 4
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729413608 {#274
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#236 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
    +entries: Doctrine\ORM\PersistentCollection {#179 …}
    +posts: Doctrine\ORM\PersistentCollection {#137 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
    +bans: Doctrine\ORM\PersistentCollection {#116 …}
    +reports: Doctrine\ORM\PersistentCollection {#102 …}
    +badges: Doctrine\ORM\PersistentCollection {#80 …}
    +logs: Doctrine\ORM\PersistentCollection {#70 …}
    +awards: Doctrine\ORM\PersistentCollection {#1360 …}
    +categories: Doctrine\ORM\PersistentCollection {#1792 …}
    -id: 11
    +apId: "askelectronics@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
    +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
    +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "askelectronics"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727247714 {#268
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#270
      date: 2023-06-19 05:13:29.0 +02:00
    }
  }
  +image: Proxies\__CG__\App\Entity\Image {#1970 …}
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
  +title: "Shift register > Relays - inconsistent results when load is attached to relay"
  +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
  +body: """
    First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
    \n
    Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
    \n
    So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
    \n
    And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
    \n
    Any guesses as to where I need to put some capacitor(s)? Thanks!!
    """
  +type: "image"
  +lang: "en"
  +isOc: false
  +hasEmbed: true
  +commentCount: 7
  +favouriteCount: 7
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1689481805 {#2418
    date: 2023-07-16 06:30:05.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1961 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
  +badges: Doctrine\ORM\PersistentCollection {#2436 …}
  +children: []
  -id: 748
  -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
  -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1688468656
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/463783"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688419656 {#1858
    date: 2023-07-03 23:27:36.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +magazine: App\Entity\Magazine {#264
    +icon: Proxies\__CG__\App\Entity\Image {#245 …}
    +name: "askelectronics@discuss.tchncs.de"
    +title: "askelectronics"
    +description: """
      **For questions about component-level electronic circuits, tools and equipment.**\n
      \n
      Rules\n
      -----\n
      \n
      1: Be nice.\n
      \n
      2: Be on-topic (eg: *Electronic*, not *electrical*).\n
      \n
      3: No commercial stuff, buying, selling or valuations.\n
      \n
      4: Be safe.\n
      \n
      ---
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 154
    +entryCommentCount: 1230
    +postCount: 1
    +postCommentCount: 4
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729413608 {#274
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#236 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
    +entries: Doctrine\ORM\PersistentCollection {#179 …}
    +posts: Doctrine\ORM\PersistentCollection {#137 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
    +bans: Doctrine\ORM\PersistentCollection {#116 …}
    +reports: Doctrine\ORM\PersistentCollection {#102 …}
    +badges: Doctrine\ORM\PersistentCollection {#80 …}
    +logs: Doctrine\ORM\PersistentCollection {#70 …}
    +awards: Doctrine\ORM\PersistentCollection {#1360 …}
    +categories: Doctrine\ORM\PersistentCollection {#1792 …}
    -id: 11
    +apId: "askelectronics@discuss.tchncs.de"
    +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
    +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
    +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
    +apInboxUrl: "https://discuss.tchncs.de/inbox"
    +apDomain: "discuss.tchncs.de"
    +apPreferredUsername: "askelectronics"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1727247714 {#268
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#270
      date: 2023-06-19 05:13:29.0 +02:00
    }
  }
  +image: Proxies\__CG__\App\Entity\Image {#1970 …}
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
  +title: "Shift register > Relays - inconsistent results when load is attached to relay"
  +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
  +body: """
    First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
    \n
    Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
    \n
    So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
    \n
    And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
    \n
    Any guesses as to where I need to put some capacitor(s)? Thanks!!
    """
  +type: "image"
  +lang: "en"
  +isOc: false
  +hasEmbed: true
  +commentCount: 7
  +favouriteCount: 7
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1689481805 {#2418
    date: 2023-07-16 06:30:05.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1961 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
  +badges: Doctrine\ORM\PersistentCollection {#2436 …}
  +children: []
  -id: 748
  -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
  -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1688468656
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/463783"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688419656 {#1858
    date: 2023-07-03 23:27:36.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\EntryComment {#4055
  +user: App\Entity\User {#4004 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
    \n
    So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
    \n
    Anyway, three places I’d add some stuff:\n
    \n
    - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
    - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
    - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1689481808 {#4064
    date: 2023-07-16 06:30:08.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4053 …}
  +nested: Doctrine\ORM\PersistentCollection {#4051 …}
  +votes: Doctrine\ORM\PersistentCollection {#4049 …}
  +reports: Doctrine\ORM\PersistentCollection {#4047 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
  -id: 7574
  -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.sdf.org/comment/592699"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688445126 {#3996
    date: 2023-07-04 06:32:06.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\EntryComment {#4055
  +user: App\Entity\User {#4004 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
    \n
    So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
    \n
    Anyway, three places I’d add some stuff:\n
    \n
    - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
    - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
    - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1689481808 {#4064
    date: 2023-07-16 06:30:08.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4053 …}
  +nested: Doctrine\ORM\PersistentCollection {#4051 …}
  +votes: Doctrine\ORM\PersistentCollection {#4049 …}
  +reports: Doctrine\ORM\PersistentCollection {#4047 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
  -id: 7574
  -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.sdf.org/comment/592699"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688445126 {#3996
    date: 2023-07-04 06:32:06.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\EntryComment {#4055
  +user: App\Entity\User {#4004 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
    \n
    So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
    \n
    Anyway, three places I’d add some stuff:\n
    \n
    - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
    - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
    - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1689481808 {#4064
    date: 2023-07-16 06:30:08.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4053 …}
  +nested: Doctrine\ORM\PersistentCollection {#4051 …}
  +votes: Doctrine\ORM\PersistentCollection {#4049 …}
  +reports: Doctrine\ORM\PersistentCollection {#4047 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
  -id: 7574
  -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.sdf.org/comment/592699"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688445126 {#3996
    date: 2023-07-04 06:32:06.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED moderate
App\Entity\EntryComment {#4268
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4055
    +user: App\Entity\User {#4004 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: null
    +root: null
    +body: """
      That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
      \n
      So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
      \n
      Anyway, three places I’d add some stuff:\n
      \n
      - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
      - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
      - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1689481808 {#4064
      date: 2023-07-16 06:30:08.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4053 …}
    +nested: Doctrine\ORM\PersistentCollection {#4051 …}
    +votes: Doctrine\ORM\PersistentCollection {#4049 …}
    +reports: Doctrine\ORM\PersistentCollection {#4047 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
    -id: 7574
    -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.sdf.org/comment/592699"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688445126 {#3996
      date: 2023-07-04 06:32:06.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4055}
  +body: "Thanks for your thoughtful response… and sorry it took so long to get back to you. I tried different combinations of capacitors, a diode on the load lines, etc… nothing worked. And then I put a 0.1uF capacitor directly between the power leads on the valve itself… and everything started working fine. Admittedly, I’m not 100% sure why… but I won’t complain :)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689285254 {#4266
    date: 2023-07-13 23:54:14.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@pneumapunk@lemmy.sdf.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4269 …}
  +nested: Doctrine\ORM\PersistentCollection {#4271 …}
  +votes: Doctrine\ORM\PersistentCollection {#4273 …}
  +reports: Doctrine\ORM\PersistentCollection {#4275 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
  -id: 15130
  -bodyTs: "'0.1':37 '100':58 'admit':54 'back':14 'capacitor':22,39 'combin':20 'complain':65 'differ':19 'diod':24 'direct':40 'etc':29 'everyth':50 'fine':53 'get':13 'lead':44 'line':28 'load':27 'long':11 'm':56 'noth':30 'power':43 'put':35 'respons':5 'sorri':7 'start':51 'sure':59 'thank':1 'thought':4 'took':9 'tri':18 'uf':38 'valv':47 'won':63 'work':31,52"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/984889"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689285254 {#4267
    date: 2023-07-13 23:54:14.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
11 DENIED edit
App\Entity\EntryComment {#4268
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4055
    +user: App\Entity\User {#4004 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: null
    +root: null
    +body: """
      That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
      \n
      So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
      \n
      Anyway, three places I’d add some stuff:\n
      \n
      - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
      - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
      - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1689481808 {#4064
      date: 2023-07-16 06:30:08.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4053 …}
    +nested: Doctrine\ORM\PersistentCollection {#4051 …}
    +votes: Doctrine\ORM\PersistentCollection {#4049 …}
    +reports: Doctrine\ORM\PersistentCollection {#4047 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
    -id: 7574
    -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.sdf.org/comment/592699"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688445126 {#3996
      date: 2023-07-04 06:32:06.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4055}
  +body: "Thanks for your thoughtful response… and sorry it took so long to get back to you. I tried different combinations of capacitors, a diode on the load lines, etc… nothing worked. And then I put a 0.1uF capacitor directly between the power leads on the valve itself… and everything started working fine. Admittedly, I’m not 100% sure why… but I won’t complain :)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689285254 {#4266
    date: 2023-07-13 23:54:14.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@pneumapunk@lemmy.sdf.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4269 …}
  +nested: Doctrine\ORM\PersistentCollection {#4271 …}
  +votes: Doctrine\ORM\PersistentCollection {#4273 …}
  +reports: Doctrine\ORM\PersistentCollection {#4275 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
  -id: 15130
  -bodyTs: "'0.1':37 '100':58 'admit':54 'back':14 'capacitor':22,39 'combin':20 'complain':65 'differ':19 'diod':24 'direct':40 'etc':29 'everyth':50 'fine':53 'get':13 'lead':44 'line':28 'load':27 'long':11 'm':56 'noth':30 'power':43 'put':35 'respons':5 'sorri':7 'start':51 'sure':59 'thank':1 'thought':4 'took':9 'tri':18 'uf':38 'valv':47 'won':63 'work':31,52"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/984889"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689285254 {#4267
    date: 2023-07-13 23:54:14.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
12 DENIED moderate
App\Entity\EntryComment {#4268
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4055
    +user: App\Entity\User {#4004 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: null
    +root: null
    +body: """
      That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
      \n
      So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
      \n
      Anyway, three places I’d add some stuff:\n
      \n
      - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
      - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
      - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1689481808 {#4064
      date: 2023-07-16 06:30:08.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4053 …}
    +nested: Doctrine\ORM\PersistentCollection {#4051 …}
    +votes: Doctrine\ORM\PersistentCollection {#4049 …}
    +reports: Doctrine\ORM\PersistentCollection {#4047 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
    -id: 7574
    -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.sdf.org/comment/592699"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688445126 {#3996
      date: 2023-07-04 06:32:06.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4055}
  +body: "Thanks for your thoughtful response… and sorry it took so long to get back to you. I tried different combinations of capacitors, a diode on the load lines, etc… nothing worked. And then I put a 0.1uF capacitor directly between the power leads on the valve itself… and everything started working fine. Admittedly, I’m not 100% sure why… but I won’t complain :)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689285254 {#4266
    date: 2023-07-13 23:54:14.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@pneumapunk@lemmy.sdf.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4269 …}
  +nested: Doctrine\ORM\PersistentCollection {#4271 …}
  +votes: Doctrine\ORM\PersistentCollection {#4273 …}
  +reports: Doctrine\ORM\PersistentCollection {#4275 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
  -id: 15130
  -bodyTs: "'0.1':37 '100':58 'admit':54 'back':14 'capacitor':22,39 'combin':20 'complain':65 'differ':19 'diod':24 'direct':40 'etc':29 'everyth':50 'fine':53 'get':13 'lead':44 'line':28 'load':27 'long':11 'm':56 'noth':30 'power':43 'put':35 'respons':5 'sorri':7 'start':51 'sure':59 'thank':1 'thought':4 'took':9 'tri':18 'uf':38 'valv':47 'won':63 'work':31,52"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/984889"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689285254 {#4267
    date: 2023-07-13 23:54:14.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
13 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
14 DENIED moderate
App\Entity\EntryComment {#4305
  +user: App\Entity\User {#4004 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4268
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: App\Entity\EntryComment {#4055
      +user: App\Entity\User {#4004 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#264}
      +image: null
      +parent: null
      +root: null
      +body: """
        That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
        \n
        So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
        \n
        Anyway, three places I’d add some stuff:\n
        \n
        - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
        - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
        - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1689481808 {#4064
        date: 2023-07-16 06:30:08.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@ryanomite@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4053 …}
      +nested: Doctrine\ORM\PersistentCollection {#4051 …}
      +votes: Doctrine\ORM\PersistentCollection {#4049 …}
      +reports: Doctrine\ORM\PersistentCollection {#4047 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
      -id: 7574
      -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.sdf.org/comment/592699"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688445126 {#3996
        date: 2023-07-04 06:32:06.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4055}
    +body: "Thanks for your thoughtful response… and sorry it took so long to get back to you. I tried different combinations of capacitors, a diode on the load lines, etc… nothing worked. And then I put a 0.1uF capacitor directly between the power leads on the valve itself… and everything started working fine. Admittedly, I’m not 100% sure why… but I won’t complain :)"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1689285254 {#4266
      date: 2023-07-13 23:54:14.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
      "@pneumapunk@lemmy.sdf.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4269 …}
    +nested: Doctrine\ORM\PersistentCollection {#4271 …}
    +votes: Doctrine\ORM\PersistentCollection {#4273 …}
    +reports: Doctrine\ORM\PersistentCollection {#4275 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
    -id: 15130
    -bodyTs: "'0.1':37 '100':58 'admit':54 'back':14 'capacitor':22,39 'combin':20 'complain':65 'differ':19 'diod':24 'direct':40 'etc':29 'everyth':50 'fine':53 'get':13 'lead':44 'line':28 'load':27 'long':11 'm':56 'noth':30 'power':43 'put':35 'respons':5 'sorri':7 'start':51 'sure':59 'thank':1 'thought':4 'took':9 'tri':18 'uf':38 'valv':47 'won':63 'work':31,52"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/984889"
    +editedAt: null
    +createdAt: DateTimeImmutable @1689285254 {#4267
      date: 2023-07-13 23:54:14.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4055}
  +body: "That makes sense, it forms a simple snubber network. A capacitor in series with a low-value resistor might work even better. Did you try a freewheeling diode directly across the valve leads?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689481805 {#4303
    date: 2023-07-16 06:30:05.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@pneumapunk@lemmy.sdf.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4306 …}
  +nested: Doctrine\ORM\PersistentCollection {#4308 …}
  +votes: Doctrine\ORM\PersistentCollection {#4310 …}
  +reports: Doctrine\ORM\PersistentCollection {#4312 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4314 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4316 …}
  -id: 19326
  -bodyTs: "'across':31 'better':23 'capacitor':11 'diod':29 'direct':30 'even':22 'form':5 'freewheel':28 'lead':34 'low':17 'low-valu':16 'make':2 'might':20 'network':9 'resistor':19 'sens':3 'seri':13 'simpl':7 'snubber':8 'tri':26 'valu':18 'valv':33 'work':21"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.sdf.org/comment/1071424"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689481805 {#4304
    date: 2023-07-16 06:30:05.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
15 DENIED edit
App\Entity\EntryComment {#4305
  +user: App\Entity\User {#4004 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4268
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: App\Entity\EntryComment {#4055
      +user: App\Entity\User {#4004 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#264}
      +image: null
      +parent: null
      +root: null
      +body: """
        That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
        \n
        So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
        \n
        Anyway, three places I’d add some stuff:\n
        \n
        - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
        - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
        - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1689481808 {#4064
        date: 2023-07-16 06:30:08.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@ryanomite@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4053 …}
      +nested: Doctrine\ORM\PersistentCollection {#4051 …}
      +votes: Doctrine\ORM\PersistentCollection {#4049 …}
      +reports: Doctrine\ORM\PersistentCollection {#4047 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
      -id: 7574
      -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.sdf.org/comment/592699"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688445126 {#3996
        date: 2023-07-04 06:32:06.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4055}
    +body: "Thanks for your thoughtful response… and sorry it took so long to get back to you. I tried different combinations of capacitors, a diode on the load lines, etc… nothing worked. And then I put a 0.1uF capacitor directly between the power leads on the valve itself… and everything started working fine. Admittedly, I’m not 100% sure why… but I won’t complain :)"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1689285254 {#4266
      date: 2023-07-13 23:54:14.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
      "@pneumapunk@lemmy.sdf.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4269 …}
    +nested: Doctrine\ORM\PersistentCollection {#4271 …}
    +votes: Doctrine\ORM\PersistentCollection {#4273 …}
    +reports: Doctrine\ORM\PersistentCollection {#4275 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
    -id: 15130
    -bodyTs: "'0.1':37 '100':58 'admit':54 'back':14 'capacitor':22,39 'combin':20 'complain':65 'differ':19 'diod':24 'direct':40 'etc':29 'everyth':50 'fine':53 'get':13 'lead':44 'line':28 'load':27 'long':11 'm':56 'noth':30 'power':43 'put':35 'respons':5 'sorri':7 'start':51 'sure':59 'thank':1 'thought':4 'took':9 'tri':18 'uf':38 'valv':47 'won':63 'work':31,52"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/984889"
    +editedAt: null
    +createdAt: DateTimeImmutable @1689285254 {#4267
      date: 2023-07-13 23:54:14.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4055}
  +body: "That makes sense, it forms a simple snubber network. A capacitor in series with a low-value resistor might work even better. Did you try a freewheeling diode directly across the valve leads?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689481805 {#4303
    date: 2023-07-16 06:30:05.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@pneumapunk@lemmy.sdf.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4306 …}
  +nested: Doctrine\ORM\PersistentCollection {#4308 …}
  +votes: Doctrine\ORM\PersistentCollection {#4310 …}
  +reports: Doctrine\ORM\PersistentCollection {#4312 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4314 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4316 …}
  -id: 19326
  -bodyTs: "'across':31 'better':23 'capacitor':11 'diod':29 'direct':30 'even':22 'form':5 'freewheel':28 'lead':34 'low':17 'low-valu':16 'make':2 'might':20 'network':9 'resistor':19 'sens':3 'seri':13 'simpl':7 'snubber':8 'tri':26 'valu':18 'valv':33 'work':21"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.sdf.org/comment/1071424"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689481805 {#4304
    date: 2023-07-16 06:30:05.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
16 DENIED moderate
App\Entity\EntryComment {#4305
  +user: App\Entity\User {#4004 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4268
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: App\Entity\EntryComment {#4055
      +user: App\Entity\User {#4004 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#264}
      +image: null
      +parent: null
      +root: null
      +body: """
        That’s interesting, so you can flip the relays all you like without trouble as long as the 24DC supply isn’t connected? If that’s true then your problem presumably isn’t the typical inductive kick from the relay coil. It looks like your relay board has stuff on it which is presumably drivers and snubbers so let’s assume all of that is adequate to the job.\n
        \n
        So, if it’s inductive kick from the valve solenoid it’s being coupled all the way from there, back through the 24DC supply to the outlet, then forward through the USB supply to your shift register, which is impressive! But not implausible.\n
        \n
        Anyway, three places I’d add some stuff:\n
        \n
        - The main thing you need is a snubber network across the valve solenoid coil itself, ideally physically close to the valve (you want to minimize the *area of the loop* formed by the valve coil - wiring - snubber). Something as simple as a freewheel/clamping diode would probably help a lot. This will also improve the lifespan of your relay contacts which are probably arcing a little.\n
        - Small decoupling cap on your breadboard, say 0.1µF on the power supply rails, to keep your logic happy.\n
        - Larger decoupling cap on your 24VDC rails (the bus on the left), just to eat any transients the snubber doesn’t deal with. Maybe 1-10µF or so?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1689481808 {#4064
        date: 2023-07-16 06:30:08.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@ryanomite@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4053 …}
      +nested: Doctrine\ORM\PersistentCollection {#4051 …}
      +votes: Doctrine\ORM\PersistentCollection {#4049 …}
      +reports: Doctrine\ORM\PersistentCollection {#4047 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4015 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4019 …}
      -id: 7574
      -bodyTs: "'-10':230 '0.1':193 '1':229 '24dc':19,92 '24vdc':210 'across':130 'add':118 'adequ':66 'also':172 'anyway':113 'arc':183 'area':147 'assum':61 'back':89 'board':47 'breadboard':191 'bus':213 'cap':188,207 'close':138 'coil':41,134,155 'connect':23 'contact':179 'coupl':83 'd':117 'deal':226 'decoupl':187,206 'diod':164 'doesn':224 'driver':55 'eat':219 'flip':7 'form':151 'forward':98 'freewheel/clamping':163 'happi':204 'help':167 'ideal':136 'implaus':112 'impress':109 'improv':173 'induct':36,74 'interest':3 'isn':21,32 'job':69 'keep':201 'kick':37,75 'larger':205 'left':216 'let':59 'lifespan':175 'like':12,44 'littl':185 'logic':203 'long':16 'look':43 'loop':150 'lot':169 'main':122 'mayb':228 'minim':145 'need':125 'network':129 'outlet':96 'physic':137 'place':115 'power':197 'presum':31,54 'probabl':166,182 'problem':30 'rail':199,211 'regist':106 'relay':9,40,46,178 'say':192 'shift':105 'simpl':160 'small':186 'snubber':57,128,157,223 'solenoid':79,133 'someth':158 'stuff':49,120 'suppli':20,93,102,198 'thing':123 'three':114 'transient':221 'troubl':14 'true':27 'typic':35 'usb':101 'valv':78,132,141,154 'want':143 'way':86 'wire':156 'without':13 'would':165 'µf':194,231"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.sdf.org/comment/592699"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688445126 {#3996
        date: 2023-07-04 06:32:06.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4055}
    +body: "Thanks for your thoughtful response… and sorry it took so long to get back to you. I tried different combinations of capacitors, a diode on the load lines, etc… nothing worked. And then I put a 0.1uF capacitor directly between the power leads on the valve itself… and everything started working fine. Admittedly, I’m not 100% sure why… but I won’t complain :)"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1689285254 {#4266
      date: 2023-07-13 23:54:14.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
      "@pneumapunk@lemmy.sdf.org"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4269 …}
    +nested: Doctrine\ORM\PersistentCollection {#4271 …}
    +votes: Doctrine\ORM\PersistentCollection {#4273 …}
    +reports: Doctrine\ORM\PersistentCollection {#4275 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
    -id: 15130
    -bodyTs: "'0.1':37 '100':58 'admit':54 'back':14 'capacitor':22,39 'combin':20 'complain':65 'differ':19 'diod':24 'direct':40 'etc':29 'everyth':50 'fine':53 'get':13 'lead':44 'line':28 'load':27 'long':11 'm':56 'noth':30 'power':43 'put':35 'respons':5 'sorri':7 'start':51 'sure':59 'thank':1 'thought':4 'took':9 'tri':18 'uf':38 'valv':47 'won':63 'work':31,52"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/984889"
    +editedAt: null
    +createdAt: DateTimeImmutable @1689285254 {#4267
      date: 2023-07-13 23:54:14.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4055}
  +body: "That makes sense, it forms a simple snubber network. A capacitor in series with a low-value resistor might work even better. Did you try a freewheeling diode directly across the valve leads?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689481805 {#4303
    date: 2023-07-16 06:30:05.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@pneumapunk@lemmy.sdf.org"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4306 …}
  +nested: Doctrine\ORM\PersistentCollection {#4308 …}
  +votes: Doctrine\ORM\PersistentCollection {#4310 …}
  +reports: Doctrine\ORM\PersistentCollection {#4312 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4314 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4316 …}
  -id: 19326
  -bodyTs: "'across':31 'better':23 'capacitor':11 'diod':29 'direct':30 'even':22 'form':5 'freewheel':28 'lead':34 'low':17 'low-valu':16 'make':2 'might':20 'network':9 'resistor':19 'sens':3 'seri':13 'simpl':7 'snubber':8 'tri':26 'valu':18 'valv':33 'work':21"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.sdf.org/comment/1071424"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689481805 {#4304
    date: 2023-07-16 06:30:05.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
17 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
18 DENIED moderate
App\Entity\EntryComment {#4101
  +user: App\Entity\User {#4085 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Not entirely sure, but maybe these help you somehow:\n
    \n
    The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
    \n
    The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
    \n
    The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1689284441 {#4107
    date: 2023-07-13 23:40:41.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4093 …}
  +nested: Doctrine\ORM\PersistentCollection {#4096 …}
  +votes: Doctrine\ORM\PersistentCollection {#4094 …}
  +reports: Doctrine\ORM\PersistentCollection {#4092 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
  -id: 7500
  -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/786477"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688421809 {#4105
    date: 2023-07-04 00:03:29.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
19 DENIED edit
App\Entity\EntryComment {#4101
  +user: App\Entity\User {#4085 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Not entirely sure, but maybe these help you somehow:\n
    \n
    The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
    \n
    The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
    \n
    The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1689284441 {#4107
    date: 2023-07-13 23:40:41.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4093 …}
  +nested: Doctrine\ORM\PersistentCollection {#4096 …}
  +votes: Doctrine\ORM\PersistentCollection {#4094 …}
  +reports: Doctrine\ORM\PersistentCollection {#4092 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
  -id: 7500
  -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/786477"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688421809 {#4105
    date: 2023-07-04 00:03:29.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
20 DENIED moderate
App\Entity\EntryComment {#4101
  +user: App\Entity\User {#4085 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Not entirely sure, but maybe these help you somehow:\n
    \n
    The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
    \n
    The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
    \n
    The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1689284441 {#4107
    date: 2023-07-13 23:40:41.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4093 …}
  +nested: Doctrine\ORM\PersistentCollection {#4096 …}
  +votes: Doctrine\ORM\PersistentCollection {#4094 …}
  +reports: Doctrine\ORM\PersistentCollection {#4092 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
  -id: 7500
  -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/786477"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688421809 {#4105
    date: 2023-07-04 00:03:29.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
21 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
22 DENIED moderate
App\Entity\EntryComment {#4253
  +user: Proxies\__CG__\App\Entity\User {#4250 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4101
    +user: App\Entity\User {#4085 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: null
    +root: null
    +body: """
      Not entirely sure, but maybe these help you somehow:\n
      \n
      The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
      \n
      The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
      \n
      The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1689284441 {#4107
      date: 2023-07-13 23:40:41.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4093 …}
    +nested: Doctrine\ORM\PersistentCollection {#4096 …}
    +votes: Doctrine\ORM\PersistentCollection {#4094 …}
    +reports: Doctrine\ORM\PersistentCollection {#4092 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
    -id: 7500
    -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/786477"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688421809 {#4105
      date: 2023-07-04 00:03:29.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4101}
  +body: """
    Yeah, decoupling cap here might as well just help OP fry the chip more effectively by ensuring it can sink all that current.\n
    \n
    Solution here is probably a transistor/MOSFET that the chip turns on, which in turn turns on the relay. Relay coils are inductors, so that probably also needs a diode to protect the transistor from inrush current and also the kickback when it turns off: inductors resist changes, so it’ll try to keep sinking the current and result in temporary spike of very high voltage: [spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688426966 {#4254
    date: 2023-07-04 01:29:26.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@grasib@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4247 …}
  +nested: Doctrine\ORM\PersistentCollection {#4245 …}
  +votes: Doctrine\ORM\PersistentCollection {#4249 …}
  +reports: Doctrine\ORM\PersistentCollection {#4260 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4262 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4264 …}
  -id: 15116
  -bodyTs: "'/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':91 'also':49,61 'cap':3 'chang':70 'chip':13,32 'coil':43 'current':23,59,79 'decoupl':2 'diod':52 'effect':15 'ensur':17 'fri':11 'help':9 'high':87 'inductor':45,68 'inrush':58 'keep':76 'kickback':63 'll':73 'might':5 'need':50 'op':10 'probabl':27,48 'protect':54 'relay':41,42 'resist':69 'result':81 'sink':20,77 'solut':24 'spike':84 'spinningnumbers.org':90 'spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':89 'temporari':83 'transistor':56 'transistor/mosfet':29 'tri':74 'turn':33,37,38,66 'voltag':88 'well':7 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.max-p.me/comment/41613"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688426966 {#4257
    date: 2023-07-04 01:29:26.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
23 DENIED edit
App\Entity\EntryComment {#4253
  +user: Proxies\__CG__\App\Entity\User {#4250 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4101
    +user: App\Entity\User {#4085 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: null
    +root: null
    +body: """
      Not entirely sure, but maybe these help you somehow:\n
      \n
      The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
      \n
      The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
      \n
      The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1689284441 {#4107
      date: 2023-07-13 23:40:41.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4093 …}
    +nested: Doctrine\ORM\PersistentCollection {#4096 …}
    +votes: Doctrine\ORM\PersistentCollection {#4094 …}
    +reports: Doctrine\ORM\PersistentCollection {#4092 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
    -id: 7500
    -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/786477"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688421809 {#4105
      date: 2023-07-04 00:03:29.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4101}
  +body: """
    Yeah, decoupling cap here might as well just help OP fry the chip more effectively by ensuring it can sink all that current.\n
    \n
    Solution here is probably a transistor/MOSFET that the chip turns on, which in turn turns on the relay. Relay coils are inductors, so that probably also needs a diode to protect the transistor from inrush current and also the kickback when it turns off: inductors resist changes, so it’ll try to keep sinking the current and result in temporary spike of very high voltage: [spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688426966 {#4254
    date: 2023-07-04 01:29:26.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@grasib@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4247 …}
  +nested: Doctrine\ORM\PersistentCollection {#4245 …}
  +votes: Doctrine\ORM\PersistentCollection {#4249 …}
  +reports: Doctrine\ORM\PersistentCollection {#4260 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4262 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4264 …}
  -id: 15116
  -bodyTs: "'/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':91 'also':49,61 'cap':3 'chang':70 'chip':13,32 'coil':43 'current':23,59,79 'decoupl':2 'diod':52 'effect':15 'ensur':17 'fri':11 'help':9 'high':87 'inductor':45,68 'inrush':58 'keep':76 'kickback':63 'll':73 'might':5 'need':50 'op':10 'probabl':27,48 'protect':54 'relay':41,42 'resist':69 'result':81 'sink':20,77 'solut':24 'spike':84 'spinningnumbers.org':90 'spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':89 'temporari':83 'transistor':56 'transistor/mosfet':29 'tri':74 'turn':33,37,38,66 'voltag':88 'well':7 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.max-p.me/comment/41613"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688426966 {#4257
    date: 2023-07-04 01:29:26.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
24 DENIED moderate
App\Entity\EntryComment {#4253
  +user: Proxies\__CG__\App\Entity\User {#4250 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4101
    +user: App\Entity\User {#4085 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: null
    +root: null
    +body: """
      Not entirely sure, but maybe these help you somehow:\n
      \n
      The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
      \n
      The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
      \n
      The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1689284441 {#4107
      date: 2023-07-13 23:40:41.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4093 …}
    +nested: Doctrine\ORM\PersistentCollection {#4096 …}
    +votes: Doctrine\ORM\PersistentCollection {#4094 …}
    +reports: Doctrine\ORM\PersistentCollection {#4092 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
    -id: 7500
    -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/786477"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688421809 {#4105
      date: 2023-07-04 00:03:29.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4101}
  +body: """
    Yeah, decoupling cap here might as well just help OP fry the chip more effectively by ensuring it can sink all that current.\n
    \n
    Solution here is probably a transistor/MOSFET that the chip turns on, which in turn turns on the relay. Relay coils are inductors, so that probably also needs a diode to protect the transistor from inrush current and also the kickback when it turns off: inductors resist changes, so it’ll try to keep sinking the current and result in temporary spike of very high voltage: [spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688426966 {#4254
    date: 2023-07-04 01:29:26.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@grasib@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4247 …}
  +nested: Doctrine\ORM\PersistentCollection {#4245 …}
  +votes: Doctrine\ORM\PersistentCollection {#4249 …}
  +reports: Doctrine\ORM\PersistentCollection {#4260 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4262 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4264 …}
  -id: 15116
  -bodyTs: "'/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':91 'also':49,61 'cap':3 'chang':70 'chip':13,32 'coil':43 'current':23,59,79 'decoupl':2 'diod':52 'effect':15 'ensur':17 'fri':11 'help':9 'high':87 'inductor':45,68 'inrush':58 'keep':76 'kickback':63 'll':73 'might':5 'need':50 'op':10 'probabl':27,48 'protect':54 'relay':41,42 'resist':69 'result':81 'sink':20,77 'solut':24 'spike':84 'spinningnumbers.org':90 'spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':89 'temporari':83 'transistor':56 'transistor/mosfet':29 'tri':74 'turn':33,37,38,66 'voltag':88 'well':7 'yeah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.max-p.me/comment/41613"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688426966 {#4257
    date: 2023-07-04 01:29:26.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
25 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
26 DENIED moderate
App\Entity\EntryComment {#4282
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4253
    +user: Proxies\__CG__\App\Entity\User {#4250 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: App\Entity\EntryComment {#4101
      +user: App\Entity\User {#4085 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#264}
      +image: null
      +parent: null
      +root: null
      +body: """
        Not entirely sure, but maybe these help you somehow:\n
        \n
        The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
        \n
        The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
        \n
        The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1689284441 {#4107
        date: 2023-07-13 23:40:41.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@ryanomite@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4093 …}
      +nested: Doctrine\ORM\PersistentCollection {#4096 …}
      +votes: Doctrine\ORM\PersistentCollection {#4094 …}
      +reports: Doctrine\ORM\PersistentCollection {#4092 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
      -id: 7500
      -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/786477"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688421809 {#4105
        date: 2023-07-04 00:03:29.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4101}
    +body: """
      Yeah, decoupling cap here might as well just help OP fry the chip more effectively by ensuring it can sink all that current.\n
      \n
      Solution here is probably a transistor/MOSFET that the chip turns on, which in turn turns on the relay. Relay coils are inductors, so that probably also needs a diode to protect the transistor from inrush current and also the kickback when it turns off: inductors resist changes, so it’ll try to keep sinking the current and result in temporary spike of very high voltage: [spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688426966 {#4254
      date: 2023-07-04 01:29:26.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
      "@grasib@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4247 …}
    +nested: Doctrine\ORM\PersistentCollection {#4245 …}
    +votes: Doctrine\ORM\PersistentCollection {#4249 …}
    +reports: Doctrine\ORM\PersistentCollection {#4260 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4262 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4264 …}
    -id: 15116
    -bodyTs: "'/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':91 'also':49,61 'cap':3 'chang':70 'chip':13,32 'coil':43 'current':23,59,79 'decoupl':2 'diod':52 'effect':15 'ensur':17 'fri':11 'help':9 'high':87 'inductor':45,68 'inrush':58 'keep':76 'kickback':63 'll':73 'might':5 'need':50 'op':10 'probabl':27,48 'protect':54 'relay':41,42 'resist':69 'result':81 'sink':20,77 'solut':24 'spike':84 'spinningnumbers.org':90 'spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':89 'temporari':83 'transistor':56 'transistor/mosfet':29 'tri':74 'turn':33,37,38,66 'voltag':88 'well':7 'yeah':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.max-p.me/comment/41613"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688426966 {#4257
      date: 2023-07-04 01:29:26.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4101}
  +body: "Thanks so much! It turns out that the relay (8x) module I’m using - <https://www.amazon.com/gp/product/B00LX3UH9C> - has isolated relays… but I’ll try a diode, too."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689284437 {#4287
    date: 2023-07-13 23:40:37.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@grasib@lemmy.world"
    "@Max_P@lemmy.max-p.me"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4290 …}
  +nested: Doctrine\ORM\PersistentCollection {#4294 …}
  +votes: Doctrine\ORM\PersistentCollection {#4296 …}
  +reports: Doctrine\ORM\PersistentCollection {#4297 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4299 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4301 …}
  -id: 15117
  -bodyTs: "'/gp/product/b00lx3uh9c':17 '8x':10 'diod':26 'isol':19 'll':23 'm':13 'modul':11 'much':3 'relay':9,20 'thank':1 'tri':24 'turn':5 'use':14 'www.amazon.com':16 'www.amazon.com/gp/product/b00lx3uh9c':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/984467"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689284437 {#4284
    date: 2023-07-13 23:40:37.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
27 DENIED edit
App\Entity\EntryComment {#4282
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4253
    +user: Proxies\__CG__\App\Entity\User {#4250 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: App\Entity\EntryComment {#4101
      +user: App\Entity\User {#4085 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#264}
      +image: null
      +parent: null
      +root: null
      +body: """
        Not entirely sure, but maybe these help you somehow:\n
        \n
        The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
        \n
        The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
        \n
        The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1689284441 {#4107
        date: 2023-07-13 23:40:41.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@ryanomite@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4093 …}
      +nested: Doctrine\ORM\PersistentCollection {#4096 …}
      +votes: Doctrine\ORM\PersistentCollection {#4094 …}
      +reports: Doctrine\ORM\PersistentCollection {#4092 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
      -id: 7500
      -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/786477"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688421809 {#4105
        date: 2023-07-04 00:03:29.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4101}
    +body: """
      Yeah, decoupling cap here might as well just help OP fry the chip more effectively by ensuring it can sink all that current.\n
      \n
      Solution here is probably a transistor/MOSFET that the chip turns on, which in turn turns on the relay. Relay coils are inductors, so that probably also needs a diode to protect the transistor from inrush current and also the kickback when it turns off: inductors resist changes, so it’ll try to keep sinking the current and result in temporary spike of very high voltage: [spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688426966 {#4254
      date: 2023-07-04 01:29:26.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
      "@grasib@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4247 …}
    +nested: Doctrine\ORM\PersistentCollection {#4245 …}
    +votes: Doctrine\ORM\PersistentCollection {#4249 …}
    +reports: Doctrine\ORM\PersistentCollection {#4260 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4262 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4264 …}
    -id: 15116
    -bodyTs: "'/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':91 'also':49,61 'cap':3 'chang':70 'chip':13,32 'coil':43 'current':23,59,79 'decoupl':2 'diod':52 'effect':15 'ensur':17 'fri':11 'help':9 'high':87 'inductor':45,68 'inrush':58 'keep':76 'kickback':63 'll':73 'might':5 'need':50 'op':10 'probabl':27,48 'protect':54 'relay':41,42 'resist':69 'result':81 'sink':20,77 'solut':24 'spike':84 'spinningnumbers.org':90 'spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':89 'temporari':83 'transistor':56 'transistor/mosfet':29 'tri':74 'turn':33,37,38,66 'voltag':88 'well':7 'yeah':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.max-p.me/comment/41613"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688426966 {#4257
      date: 2023-07-04 01:29:26.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4101}
  +body: "Thanks so much! It turns out that the relay (8x) module I’m using - <https://www.amazon.com/gp/product/B00LX3UH9C> - has isolated relays… but I’ll try a diode, too."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689284437 {#4287
    date: 2023-07-13 23:40:37.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@grasib@lemmy.world"
    "@Max_P@lemmy.max-p.me"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4290 …}
  +nested: Doctrine\ORM\PersistentCollection {#4294 …}
  +votes: Doctrine\ORM\PersistentCollection {#4296 …}
  +reports: Doctrine\ORM\PersistentCollection {#4297 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4299 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4301 …}
  -id: 15117
  -bodyTs: "'/gp/product/b00lx3uh9c':17 '8x':10 'diod':26 'isol':19 'll':23 'm':13 'modul':11 'much':3 'relay':9,20 'thank':1 'tri':24 'turn':5 'use':14 'www.amazon.com':16 'www.amazon.com/gp/product/b00lx3uh9c':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/984467"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689284437 {#4284
    date: 2023-07-13 23:40:37.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
28 DENIED moderate
App\Entity\EntryComment {#4282
  +user: Proxies\__CG__\App\Entity\User {#1978 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: App\Entity\EntryComment {#4253
    +user: Proxies\__CG__\App\Entity\User {#4250 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#264}
    +image: null
    +parent: App\Entity\EntryComment {#4101
      +user: App\Entity\User {#4085 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#264}
      +image: null
      +parent: null
      +root: null
      +body: """
        Not entirely sure, but maybe these help you somehow:\n
        \n
        The relay has a coil which requires 0.35W. The chip seems to have a maximum output current of 35mA.\n
        \n
        The ‚switch on current‘ of an inductive load is usually 3 to 5 times higher than the ‚hold‘ current.\n
        \n
        The valve may not have a free-wheeling-diode. This could create an issue by creating strange voltage spikes on all your supply voltages (connected by GND).
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 3
      +score: 0
      +lastActive: DateTime @1689284441 {#4107
        date: 2023-07-13 23:40:41.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@ryanomite@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4093 …}
      +nested: Doctrine\ORM\PersistentCollection {#4096 …}
      +votes: Doctrine\ORM\PersistentCollection {#4094 …}
      +reports: Doctrine\ORM\PersistentCollection {#4092 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4091 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4082 …}
      -id: 7500
      -bodyTs: "'0.35':17 '3':40 '35ma':29 '5':42 'chip':20 'coil':14 'connect':74 'could':60 'creat':61,65 'current':27,33,48 'diod':58 'entir':2 'free':56 'free-wheeling-diod':55 'gnd':76 'help':7 'higher':44 'hold':47 'induct':36 'issu':63 'load':37 'maximum':25 'may':51 'mayb':5 'output':26 'relay':11 'requir':16 'seem':21 'somehow':9 'spike':68 'strang':66 'suppli':72 'sure':3 'switch':31 'time':43 'usual':39 'valv':50 'voltag':67,73 'w':18 'wheel':57"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/786477"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688421809 {#4105
        date: 2023-07-04 00:03:29.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4101}
    +body: """
      Yeah, decoupling cap here might as well just help OP fry the chip more effectively by ensuring it can sink all that current.\n
      \n
      Solution here is probably a transistor/MOSFET that the chip turns on, which in turn turns on the relay. Relay coils are inductors, so that probably also needs a diode to protect the transistor from inrush current and also the kickback when it turns off: inductors resist changes, so it’ll try to keep sinking the current and result in temporary spike of very high voltage: [spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688426966 {#4254
      date: 2023-07-04 01:29:26.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@ryanomite@discuss.tchncs.de"
      "@grasib@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4247 …}
    +nested: Doctrine\ORM\PersistentCollection {#4245 …}
    +votes: Doctrine\ORM\PersistentCollection {#4249 …}
    +reports: Doctrine\ORM\PersistentCollection {#4260 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4262 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4264 …}
    -id: 15116
    -bodyTs: "'/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':91 'also':49,61 'cap':3 'chang':70 'chip':13,32 'coil':43 'current':23,59,79 'decoupl':2 'diod':52 'effect':15 'ensur':17 'fri':11 'help':9 'high':87 'inductor':45,68 'inrush':58 'keep':76 'kickback':63 'll':73 'might':5 'need':50 'op':10 'probabl':27,48 'protect':54 'relay':41,42 'resist':69 'result':81 'sink':20,77 'solut':24 'spike':84 'spinningnumbers.org':90 'spinningnumbers.org/a/inductor-kickback.html](https://spinningnumbers.org/a/inductor-kickback.html)':89 'temporari':83 'transistor':56 'transistor/mosfet':29 'tri':74 'turn':33,37,38,66 'voltag':88 'well':7 'yeah':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.max-p.me/comment/41613"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688426966 {#4257
      date: 2023-07-04 01:29:26.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4101}
  +body: "Thanks so much! It turns out that the relay (8x) module I’m using - <https://www.amazon.com/gp/product/B00LX3UH9C> - has isolated relays… but I’ll try a diode, too."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1689284437 {#4287
    date: 2023-07-13 23:40:37.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
    "@grasib@lemmy.world"
    "@Max_P@lemmy.max-p.me"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4290 …}
  +nested: Doctrine\ORM\PersistentCollection {#4294 …}
  +votes: Doctrine\ORM\PersistentCollection {#4296 …}
  +reports: Doctrine\ORM\PersistentCollection {#4297 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4299 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4301 …}
  -id: 15117
  -bodyTs: "'/gp/product/b00lx3uh9c':17 '8x':10 'diod':26 'isol':19 'll':23 'm':13 'modul':11 'much':3 'relay':9,20 'thank':1 'tri':24 'turn':5 'use':14 'www.amazon.com':16 'www.amazon.com/gp/product/b00lx3uh9c':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/984467"
  +editedAt: null
  +createdAt: DateTimeImmutable @1689284437 {#4284
    date: 2023-07-13 23:40:37.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
29 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
30 DENIED moderate
App\Entity\EntryComment {#4169
  +user: App\Entity\User {#4182 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Seems your linked website as a very believable conclusion attached to it. I have a similar issue where the relay module would behave erratically. In my case it was when the relay module/595 chips received power before the Arduino was fully powered up. It’s unlikely that a load affects your relay module as they should never be connected to the main circuit.\n
    \n
    I guess something like a pulldown resistor on the SER, CLK and RCLK pins would solve the issue since that would kill any noise. The noise is probably the kind of voltage that BARELY registers as HIGH but highly random.\n
    \n
    That or making the relay module only turn on after the microcontroller has finished starting up using a mosfet or something.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688442898 {#4163
    date: 2023-07-04 05:54:58.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4170 …}
  +nested: Doctrine\ORM\PersistentCollection {#4172 …}
  +votes: Doctrine\ORM\PersistentCollection {#4174 …}
  +reports: Doctrine\ORM\PersistentCollection {#4176 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4178 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
  -id: 7561
  -bodyTs: "'affect':50 'arduino':39 'attach':10 'bare':97 'behav':23 'believ':8 'case':27 'chip':34 'circuit':63 'clk':74 'conclus':9 'connect':59 'errat':24 'finish':117 'fulli':41 'guess':65 'high':100,102 'issu':17,81 'kill':85 'kind':93 'like':67 'link':3 'load':49 'main':62 'make':106 'microcontrol':115 'modul':21,53,109 'module/595':33 'mosfet':122 'never':57 'nois':87,89 'pin':77 'power':36,42 'probabl':91 'pulldown':69 'random':103 'rclk':76 'receiv':35 'regist':98 'relay':20,32,52,108 'resistor':70 'seem':1 'ser':73 'similar':16 'sinc':82 'solv':79 'someth':66,124 'start':118 'turn':111 'unlik':46 'use':120 'voltag':95 'websit':4 'would':22,78,84"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/601154"
  +editedAt: DateTimeImmutable @1688452608 {#4164
    date: 2023-07-04 08:36:48.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688442898 {#4165
    date: 2023-07-04 05:54:58.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
31 DENIED edit
App\Entity\EntryComment {#4169
  +user: App\Entity\User {#4182 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Seems your linked website as a very believable conclusion attached to it. I have a similar issue where the relay module would behave erratically. In my case it was when the relay module/595 chips received power before the Arduino was fully powered up. It’s unlikely that a load affects your relay module as they should never be connected to the main circuit.\n
    \n
    I guess something like a pulldown resistor on the SER, CLK and RCLK pins would solve the issue since that would kill any noise. The noise is probably the kind of voltage that BARELY registers as HIGH but highly random.\n
    \n
    That or making the relay module only turn on after the microcontroller has finished starting up using a mosfet or something.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688442898 {#4163
    date: 2023-07-04 05:54:58.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4170 …}
  +nested: Doctrine\ORM\PersistentCollection {#4172 …}
  +votes: Doctrine\ORM\PersistentCollection {#4174 …}
  +reports: Doctrine\ORM\PersistentCollection {#4176 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4178 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
  -id: 7561
  -bodyTs: "'affect':50 'arduino':39 'attach':10 'bare':97 'behav':23 'believ':8 'case':27 'chip':34 'circuit':63 'clk':74 'conclus':9 'connect':59 'errat':24 'finish':117 'fulli':41 'guess':65 'high':100,102 'issu':17,81 'kill':85 'kind':93 'like':67 'link':3 'load':49 'main':62 'make':106 'microcontrol':115 'modul':21,53,109 'module/595':33 'mosfet':122 'never':57 'nois':87,89 'pin':77 'power':36,42 'probabl':91 'pulldown':69 'random':103 'rclk':76 'receiv':35 'regist':98 'relay':20,32,52,108 'resistor':70 'seem':1 'ser':73 'similar':16 'sinc':82 'solv':79 'someth':66,124 'start':118 'turn':111 'unlik':46 'use':120 'voltag':95 'websit':4 'would':22,78,84"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/601154"
  +editedAt: DateTimeImmutable @1688452608 {#4164
    date: 2023-07-04 08:36:48.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688442898 {#4165
    date: 2023-07-04 05:54:58.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
32 DENIED moderate
App\Entity\EntryComment {#4169
  +user: App\Entity\User {#4182 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1978 …}
    +magazine: App\Entity\Magazine {#264
      +icon: Proxies\__CG__\App\Entity\Image {#245 …}
      +name: "askelectronics@discuss.tchncs.de"
      +title: "askelectronics"
      +description: """
        **For questions about component-level electronic circuits, tools and equipment.**\n
        \n
        Rules\n
        -----\n
        \n
        1: Be nice.\n
        \n
        2: Be on-topic (eg: *Electronic*, not *electrical*).\n
        \n
        3: No commercial stuff, buying, selling or valuations.\n
        \n
        4: Be safe.\n
        \n
        ---
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 154
      +entryCommentCount: 1230
      +postCount: 1
      +postCommentCount: 4
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729413608 {#274
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#236 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
      +entries: Doctrine\ORM\PersistentCollection {#179 …}
      +posts: Doctrine\ORM\PersistentCollection {#137 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
      +bans: Doctrine\ORM\PersistentCollection {#116 …}
      +reports: Doctrine\ORM\PersistentCollection {#102 …}
      +badges: Doctrine\ORM\PersistentCollection {#80 …}
      +logs: Doctrine\ORM\PersistentCollection {#70 …}
      +awards: Doctrine\ORM\PersistentCollection {#1360 …}
      +categories: Doctrine\ORM\PersistentCollection {#1792 …}
      -id: 11
      +apId: "askelectronics@discuss.tchncs.de"
      +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
      +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
      +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
      +apInboxUrl: "https://discuss.tchncs.de/inbox"
      +apDomain: "discuss.tchncs.de"
      +apPreferredUsername: "askelectronics"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1727247714 {#268
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#270
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: Proxies\__CG__\App\Entity\Image {#1970 …}
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Shift-register-Relays-inconsistent-results-when-load-is-attached-to"
    +title: "Shift register > Relays - inconsistent results when load is attached to relay"
    +url: "https://discuss.tchncs.de/pictrs/image/11badfb8-6d12-4278-a6e5-e561ba8dc319.jpeg"
    +body: """
      First of all, I apologize for the lack of a “formal” schematic… I tried to draw one out, but got buried in the nuances of it :)\n
      \n
      Second, I’ve done enough research to have [some idea](https://hstech.ro/HC595/) of what my problem is: namely, I need a [decoupling capacitor](https://www.reddit.com/r/AskElectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/) in the mix. Problem is, I’m new enough to this that I’m not 100% sure where to put it, nor what capacitance I should use.\n
      \n
      So the setup: -I’m using a Wemos(like) D1 Mini to drive 8 relays via an HC595 shift register -The D1 Mini microcontroller, HC595, and relay module are all powered by the same 5V DC and ground -The microcontroller addresses the shift register via 3.3VDC data pins -The relays power a water valve via a separate 24VDC power supply and transformer - plugged into the same AC outlet\n
      \n
      And the problem: everything works just fine UNTIL I actually add the 24VDC power load. Once that’s done, the results are very erratic… usually turning on the correct valve correctly, but rarely turning it off in the same way. As I mentioned, I intuitively suspect noise in the data caused by the sudden power to the valve… but it doesn’t make too much sense since everything is on different power supplies.\n
      \n
      Any guesses as to where I need to put some capacitor(s)? Thanks!!
      """
    +type: "image"
    +lang: "en"
    +isOc: false
    +hasEmbed: true
    +commentCount: 7
    +favouriteCount: 7
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1689481805 {#2418
      date: 2023-07-16 06:30:05.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1961 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1399 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2440 …}
    +badges: Doctrine\ORM\PersistentCollection {#2436 …}
    +children: []
    -id: 748
    -titleTs: "'attach':9 'inconsist':4 'load':7 'regist':2 'relay':3,11 'result':5 'shift':1"
    -bodyTs: "'/hc595/)':39 '/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':53 '100':69 '24vdc':139,162 '3.3':126 '5v':115 '8':94 'ac':148 'actual':159 'add':160 'address':121 'apolog':5 'buri':21 'capacit':77 'capacitor':50,233 'caus':200 'correct':178,180 'd1':90,102 'data':128,199 'dc':116 'decoupl':49 'differ':220 'doesn':210 'done':30,168 'draw':16 'drive':93 'enough':31,62 'errat':173 'everyth':153,217 'fine':156 'first':1 'formal':11 'got':20 'ground':118 'guess':224 'hc595':98,105 'hstech.ro':38 'hstech.ro/hc595/)':37 'idea':36 'intuit':194 'lack':8 'like':89 'load':164 'm':60,67,85 'make':212 'mention':192 'microcontrol':104,120 'mini':91,103 'mix':56 'modul':108 'much':214 'name':45 'need':47,229 'new':61 'nois':196 'nuanc':24 'one':17 'outlet':149 'pin':129 'plug':144 'power':111,132,140,163,204,221 'problem':43,57,152 'put':73,231 'rare':182 'regist':100,124 'relay':95,107,131 'research':32 'result':170 'schemat':12 'second':27 'sens':215 'separ':138 'setup':83 'shift':99,123 'sinc':216 'sudden':203 'suppli':141,222 'sure':70 'suspect':195 'thank':235 'transform':143 'tri':14 'turn':175,183 'use':80,86 'usual':174 'valv':135,179,207 'vdc':127 've':29 'via':96,125,136 'water':134 'way':189 'wemo':88 'work':154 'www.reddit.com':52 'www.reddit.com/r/askelectronics/comments/6ubdyt/need_some_quick_helpclarification_on_power_supply/)':51"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688468656
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/463783"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688419656 {#1858
      date: 2023-07-03 23:27:36.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#264}
  +image: null
  +parent: null
  +root: null
  +body: """
    Seems your linked website as a very believable conclusion attached to it. I have a similar issue where the relay module would behave erratically. In my case it was when the relay module/595 chips received power before the Arduino was fully powered up. It’s unlikely that a load affects your relay module as they should never be connected to the main circuit.\n
    \n
    I guess something like a pulldown resistor on the SER, CLK and RCLK pins would solve the issue since that would kill any noise. The noise is probably the kind of voltage that BARELY registers as HIGH but highly random.\n
    \n
    That or making the relay module only turn on after the microcontroller has finished starting up using a mosfet or something.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688442898 {#4163
    date: 2023-07-04 05:54:58.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@ryanomite@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4170 …}
  +nested: Doctrine\ORM\PersistentCollection {#4172 …}
  +votes: Doctrine\ORM\PersistentCollection {#4174 …}
  +reports: Doctrine\ORM\PersistentCollection {#4176 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4178 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4180 …}
  -id: 7561
  -bodyTs: "'affect':50 'arduino':39 'attach':10 'bare':97 'behav':23 'believ':8 'case':27 'chip':34 'circuit':63 'clk':74 'conclus':9 'connect':59 'errat':24 'finish':117 'fulli':41 'guess':65 'high':100,102 'issu':17,81 'kill':85 'kind':93 'like':67 'link':3 'load':49 'main':62 'make':106 'microcontrol':115 'modul':21,53,109 'module/595':33 'mosfet':122 'never':57 'nois':87,89 'pin':77 'power':36,42 'probabl':91 'pulldown':69 'random':103 'rclk':76 'receiv':35 'regist':98 'relay':20,32,52,108 'resistor':70 'seem':1 'ser':73 'similar':16 'sinc':82 'solv':79 'someth':66,124 'start':118 'turn':111 'unlik':46 'use':120 'voltag':95 'websit':4 'would':22,78,84"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/601154"
  +editedAt: DateTimeImmutable @1688452608 {#4164
    date: 2023-07-04 08:36:48.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688442898 {#4165
    date: 2023-07-04 05:54:58.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
33 DENIED edit
App\Entity\Magazine {#264
  +icon: Proxies\__CG__\App\Entity\Image {#245 …}
  +name: "askelectronics@discuss.tchncs.de"
  +title: "askelectronics"
  +description: """
    **For questions about component-level electronic circuits, tools and equipment.**\n
    \n
    Rules\n
    -----\n
    \n
    1: Be nice.\n
    \n
    2: Be on-topic (eg: *Electronic*, not *electrical*).\n
    \n
    3: No commercial stuff, buying, selling or valuations.\n
    \n
    4: Be safe.\n
    \n
    ---
    """
  +rules: null
  +subscriptionsCount: 1
  +entryCount: 154
  +entryCommentCount: 1230
  +postCount: 1
  +postCommentCount: 4
  +isAdult: false
  +customCss: null
  +lastActive: DateTime @1729413608 {#274
    date: 2024-10-20 10:40:08.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#236 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
  +entries: Doctrine\ORM\PersistentCollection {#179 …}
  +posts: Doctrine\ORM\PersistentCollection {#137 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
  +bans: Doctrine\ORM\PersistentCollection {#116 …}
  +reports: Doctrine\ORM\PersistentCollection {#102 …}
  +badges: Doctrine\ORM\PersistentCollection {#80 …}
  +logs: Doctrine\ORM\PersistentCollection {#70 …}
  +awards: Doctrine\ORM\PersistentCollection {#1360 …}
  +categories: Doctrine\ORM\PersistentCollection {#1792 …}
  -id: 11
  +apId: "askelectronics@discuss.tchncs.de"
  +apProfileId: "https://discuss.tchncs.de/c/askelectronics"
  +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics"
  +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers"
  +apInboxUrl: "https://discuss.tchncs.de/inbox"
  +apDomain: "discuss.tchncs.de"
  +apPreferredUsername: "askelectronics"
  +apDiscoverable: true
  +apManuallyApprovesFollowers: null
  +privateKey: null
  +publicKey: null
  +apFetchedAt: DateTime @1727247714 {#268
    date: 2024-09-25 09:01:54.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1687144409 {#270
    date: 2023-06-19 05:13:29.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details