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 …}
}
0.23 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.04 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 {#2388
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +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 {#276
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -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 {#270
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#272
      date: 2023-06-19 05:13:29.0 +02:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
  +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
  +title: "Can I switch this constant current LED driver at 38kHz?"
  +url: null
  +body: """
    My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
    \n
    I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
    \n
    I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
    \n
    I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
    \n
    Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
    \n
    I’d love to hear your thoughts about how I should go about this. Thanks
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 6
  +favouriteCount: 3
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1688440552 {#2410
    date: 2023-07-04 05:15:52.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1866 …}
  +votes: Doctrine\ORM\PersistentCollection {#1978 …}
  +reports: Doctrine\ORM\PersistentCollection {#1946 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
  +badges: Doctrine\ORM\PersistentCollection {#2426 …}
  +children: []
  -id: 749
  -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
  -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1688452507
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/465080"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688424007 {#1850
    date: 2023-07-04 00:40:07.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 {#2388
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +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 {#276
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -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 {#270
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#272
      date: 2023-06-19 05:13:29.0 +02:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
  +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
  +title: "Can I switch this constant current LED driver at 38kHz?"
  +url: null
  +body: """
    My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
    \n
    I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
    \n
    I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
    \n
    I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
    \n
    Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
    \n
    I’d love to hear your thoughts about how I should go about this. Thanks
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 6
  +favouriteCount: 3
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1688440552 {#2410
    date: 2023-07-04 05:15:52.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1866 …}
  +votes: Doctrine\ORM\PersistentCollection {#1978 …}
  +reports: Doctrine\ORM\PersistentCollection {#1946 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
  +badges: Doctrine\ORM\PersistentCollection {#2426 …}
  +children: []
  -id: 749
  -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
  -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1688452507
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/465080"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688424007 {#1850
    date: 2023-07-04 00:40:07.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 {#2388
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +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 {#276
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -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 {#270
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#272
      date: 2023-06-19 05:13:29.0 +02:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
  +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
  +title: "Can I switch this constant current LED driver at 38kHz?"
  +url: null
  +body: """
    My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
    \n
    I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
    \n
    I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
    \n
    I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
    \n
    Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
    \n
    I’d love to hear your thoughts about how I should go about this. Thanks
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 6
  +favouriteCount: 3
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1688440552 {#2410
    date: 2023-07-04 05:15:52.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1866 …}
  +votes: Doctrine\ORM\PersistentCollection {#1978 …}
  +reports: Doctrine\ORM\PersistentCollection {#1946 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
  +badges: Doctrine\ORM\PersistentCollection {#2426 …}
  +children: []
  -id: 749
  -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
  -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1688452507
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/post/465080"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688424007 {#1850
    date: 2023-07-04 00:40:07.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 {#4049
  +user: App\Entity\User {#3997 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
    \n
    If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688440553 {#4058
    date: 2023-07-04 05:15:53.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4047 …}
  +nested: Doctrine\ORM\PersistentCollection {#4045 …}
  +votes: Doctrine\ORM\PersistentCollection {#4043 …}
  +reports: Doctrine\ORM\PersistentCollection {#4041 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
  -id: 7516
  -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/596704"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688429807 {#3994
    date: 2023-07-04 02:16:47.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 {#4049
  +user: App\Entity\User {#3997 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
    \n
    If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688440553 {#4058
    date: 2023-07-04 05:15:53.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4047 …}
  +nested: Doctrine\ORM\PersistentCollection {#4045 …}
  +votes: Doctrine\ORM\PersistentCollection {#4043 …}
  +reports: Doctrine\ORM\PersistentCollection {#4041 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
  -id: 7516
  -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/596704"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688429807 {#3994
    date: 2023-07-04 02:16:47.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 {#4049
  +user: App\Entity\User {#3997 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
    \n
    If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688440553 {#4058
    date: 2023-07-04 05:15:53.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4047 …}
  +nested: Doctrine\ORM\PersistentCollection {#4045 …}
  +votes: Doctrine\ORM\PersistentCollection {#4043 …}
  +reports: Doctrine\ORM\PersistentCollection {#4041 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
  -id: 7516
  -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/596704"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688429807 {#3994
    date: 2023-07-04 02:16:47.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 {#4193
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4049
    +user: App\Entity\User {#3997 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
      \n
      If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688440553 {#4058
      date: 2023-07-04 05:15:53.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4047 …}
    +nested: Doctrine\ORM\PersistentCollection {#4045 …}
    +votes: Doctrine\ORM\PersistentCollection {#4043 …}
    +reports: Doctrine\ORM\PersistentCollection {#4041 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
    -id: 7516
    -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/596704"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688429807 {#3994
      date: 2023-07-04 02:16:47.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4049}
  +body: """
    Hey, thanks for your comment. I looked at using a resistor in series with the LED, but if my calculations were correct I could only power the LED less than 3W and 2W would be wasted.\n
    \n
    R = (V~s~-V~f~)/I~f~ = (5V-2.8V)/1A = 2.2Ω\n
    \n
    P~LED~ = V~f~*I~f~ = 2.8V*1A = 2.8W\n
    \n
    P~Resistor~ = V~s~*I~f~-P~LED~ = 5V*1A-2.8W = 2.2W\n
    \n
    Let me know if the calculations are correct.\n
    \n
    Edit: Calculations
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688432188 {#4190
    date: 2023-07-04 02:56:28.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@cmnybo@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4194 …}
  +nested: Doctrine\ORM\PersistentCollection {#4196 …}
  +votes: Doctrine\ORM\PersistentCollection {#4198 …}
  +reports: Doctrine\ORM\PersistentCollection {#4200 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4202 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4204 …}
  -id: 7524
  -bodyTs: "'-2.8':45,71 '/1a':47 '/i':42 '1a':58,70 '2.2':48,73 '2.8':56,59 '2w':33 '3w':31 '5v':44,69 'calcul':20,80,84 'comment':5 'correct':22,82 'could':24 'edit':83 'hey':1 'know':77 'led':16,28 'less':29 'let':75 'look':7 'p':50,61,67 'power':26 'r':37 'resistor':11 'seri':13 'thank':2 'use':9 'v':38,40,46,52,57,63 'w':60,72,74 'wast':36 'would':34 '~f':41,43,53,55,66 '~led':51,68 '~resistor':62 '~s':39,64 'ω':49"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/597544"
  +editedAt: DateTimeImmutable @1688432995 {#4191
    date: 2023-07-04 03:09:55.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688432188 {#4192
    date: 2023-07-04 02:56:28.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 {#4193
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4049
    +user: App\Entity\User {#3997 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
      \n
      If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688440553 {#4058
      date: 2023-07-04 05:15:53.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4047 …}
    +nested: Doctrine\ORM\PersistentCollection {#4045 …}
    +votes: Doctrine\ORM\PersistentCollection {#4043 …}
    +reports: Doctrine\ORM\PersistentCollection {#4041 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
    -id: 7516
    -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/596704"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688429807 {#3994
      date: 2023-07-04 02:16:47.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4049}
  +body: """
    Hey, thanks for your comment. I looked at using a resistor in series with the LED, but if my calculations were correct I could only power the LED less than 3W and 2W would be wasted.\n
    \n
    R = (V~s~-V~f~)/I~f~ = (5V-2.8V)/1A = 2.2Ω\n
    \n
    P~LED~ = V~f~*I~f~ = 2.8V*1A = 2.8W\n
    \n
    P~Resistor~ = V~s~*I~f~-P~LED~ = 5V*1A-2.8W = 2.2W\n
    \n
    Let me know if the calculations are correct.\n
    \n
    Edit: Calculations
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688432188 {#4190
    date: 2023-07-04 02:56:28.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@cmnybo@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4194 …}
  +nested: Doctrine\ORM\PersistentCollection {#4196 …}
  +votes: Doctrine\ORM\PersistentCollection {#4198 …}
  +reports: Doctrine\ORM\PersistentCollection {#4200 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4202 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4204 …}
  -id: 7524
  -bodyTs: "'-2.8':45,71 '/1a':47 '/i':42 '1a':58,70 '2.2':48,73 '2.8':56,59 '2w':33 '3w':31 '5v':44,69 'calcul':20,80,84 'comment':5 'correct':22,82 'could':24 'edit':83 'hey':1 'know':77 'led':16,28 'less':29 'let':75 'look':7 'p':50,61,67 'power':26 'r':37 'resistor':11 'seri':13 'thank':2 'use':9 'v':38,40,46,52,57,63 'w':60,72,74 'wast':36 'would':34 '~f':41,43,53,55,66 '~led':51,68 '~resistor':62 '~s':39,64 'ω':49"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/597544"
  +editedAt: DateTimeImmutable @1688432995 {#4191
    date: 2023-07-04 03:09:55.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688432188 {#4192
    date: 2023-07-04 02:56:28.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 {#4193
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4049
    +user: App\Entity\User {#3997 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
      \n
      If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688440553 {#4058
      date: 2023-07-04 05:15:53.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4047 …}
    +nested: Doctrine\ORM\PersistentCollection {#4045 …}
    +votes: Doctrine\ORM\PersistentCollection {#4043 …}
    +reports: Doctrine\ORM\PersistentCollection {#4041 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
    -id: 7516
    -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/596704"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688429807 {#3994
      date: 2023-07-04 02:16:47.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4049}
  +body: """
    Hey, thanks for your comment. I looked at using a resistor in series with the LED, but if my calculations were correct I could only power the LED less than 3W and 2W would be wasted.\n
    \n
    R = (V~s~-V~f~)/I~f~ = (5V-2.8V)/1A = 2.2Ω\n
    \n
    P~LED~ = V~f~*I~f~ = 2.8V*1A = 2.8W\n
    \n
    P~Resistor~ = V~s~*I~f~-P~LED~ = 5V*1A-2.8W = 2.2W\n
    \n
    Let me know if the calculations are correct.\n
    \n
    Edit: Calculations
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688432188 {#4190
    date: 2023-07-04 02:56:28.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@cmnybo@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4194 …}
  +nested: Doctrine\ORM\PersistentCollection {#4196 …}
  +votes: Doctrine\ORM\PersistentCollection {#4198 …}
  +reports: Doctrine\ORM\PersistentCollection {#4200 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4202 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4204 …}
  -id: 7524
  -bodyTs: "'-2.8':45,71 '/1a':47 '/i':42 '1a':58,70 '2.2':48,73 '2.8':56,59 '2w':33 '3w':31 '5v':44,69 'calcul':20,80,84 'comment':5 'correct':22,82 'could':24 'edit':83 'hey':1 'know':77 'led':16,28 'less':29 'let':75 'look':7 'p':50,61,67 'power':26 'r':37 'resistor':11 'seri':13 'thank':2 'use':9 'v':38,40,46,52,57,63 'w':60,72,74 'wast':36 'would':34 '~f':41,43,53,55,66 '~led':51,68 '~resistor':62 '~s':39,64 'ω':49"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/597544"
  +editedAt: DateTimeImmutable @1688432995 {#4191
    date: 2023-07-04 03:09:55.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688432188 {#4192
    date: 2023-07-04 02:56:28.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 {#4230
  +user: App\Entity\User {#3997 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4193
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4049
      +user: App\Entity\User {#3997 …}
      +entry: App\Entity\Entry {#2388}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
        \n
        If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1688440553 {#4058
        date: 2023-07-04 05:15:53.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@silvio2402@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4047 …}
      +nested: Doctrine\ORM\PersistentCollection {#4045 …}
      +votes: Doctrine\ORM\PersistentCollection {#4043 …}
      +reports: Doctrine\ORM\PersistentCollection {#4041 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
      -id: 7516
      -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/596704"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688429807 {#3994
        date: 2023-07-04 02:16:47.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4049}
    +body: """
      Hey, thanks for your comment. I looked at using a resistor in series with the LED, but if my calculations were correct I could only power the LED less than 3W and 2W would be wasted.\n
      \n
      R = (V~s~-V~f~)/I~f~ = (5V-2.8V)/1A = 2.2Ω\n
      \n
      P~LED~ = V~f~*I~f~ = 2.8V*1A = 2.8W\n
      \n
      P~Resistor~ = V~s~*I~f~-P~LED~ = 5V*1A-2.8W = 2.2W\n
      \n
      Let me know if the calculations are correct.\n
      \n
      Edit: Calculations
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1688432188 {#4190
      date: 2023-07-04 02:56:28.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
      "@cmnybo@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4194 …}
    +nested: Doctrine\ORM\PersistentCollection {#4196 …}
    +votes: Doctrine\ORM\PersistentCollection {#4198 …}
    +reports: Doctrine\ORM\PersistentCollection {#4200 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4202 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4204 …}
    -id: 7524
    -bodyTs: "'-2.8':45,71 '/1a':47 '/i':42 '1a':58,70 '2.2':48,73 '2.8':56,59 '2w':33 '3w':31 '5v':44,69 'calcul':20,80,84 'comment':5 'correct':22,82 'could':24 'edit':83 'hey':1 'know':77 'led':16,28 'less':29 'let':75 'look':7 'p':50,61,67 'power':26 'r':37 'resistor':11 'seri':13 'thank':2 'use':9 'v':38,40,46,52,57,63 'w':60,72,74 'wast':36 'would':34 '~f':41,43,53,55,66 '~led':51,68 '~resistor':62 '~s':39,64 'ω':49"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/597544"
    +editedAt: DateTimeImmutable @1688432995 {#4191
      date: 2023-07-04 03:09:55.0 +02:00
    }
    +createdAt: DateTimeImmutable @1688432188 {#4192
      date: 2023-07-04 02:56:28.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4049}
  +body: """
    Those calculations are correct.\n
    \n
    Since the remote control signals are short and low duty cycle, you could use a capacitor to provide the peak current for the LED without going over the maximum current of the power supply.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688440552 {#4228
    date: 2023-07-04 05:15:52.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@cmnybo@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4231 …}
  +nested: Doctrine\ORM\PersistentCollection {#4233 …}
  +votes: Doctrine\ORM\PersistentCollection {#4235 …}
  +reports: Doctrine\ORM\PersistentCollection {#4237 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4239 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4241 …}
  -id: 7558
  -bodyTs: "'calcul':2 'capacitor':20 'control':8 'correct':4 'could':17 'current':25,34 'cycl':15 'duti':14 'go':30 'led':28 'low':13 'maximum':33 'peak':24 'power':37 'provid':22 'remot':7 'short':11 'signal':9 'sinc':5 'suppli':38 'use':18 'without':29"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/600360"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688440552 {#4229
    date: 2023-07-04 05:15:52.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 {#4230
  +user: App\Entity\User {#3997 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4193
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4049
      +user: App\Entity\User {#3997 …}
      +entry: App\Entity\Entry {#2388}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
        \n
        If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1688440553 {#4058
        date: 2023-07-04 05:15:53.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@silvio2402@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4047 …}
      +nested: Doctrine\ORM\PersistentCollection {#4045 …}
      +votes: Doctrine\ORM\PersistentCollection {#4043 …}
      +reports: Doctrine\ORM\PersistentCollection {#4041 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
      -id: 7516
      -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/596704"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688429807 {#3994
        date: 2023-07-04 02:16:47.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4049}
    +body: """
      Hey, thanks for your comment. I looked at using a resistor in series with the LED, but if my calculations were correct I could only power the LED less than 3W and 2W would be wasted.\n
      \n
      R = (V~s~-V~f~)/I~f~ = (5V-2.8V)/1A = 2.2Ω\n
      \n
      P~LED~ = V~f~*I~f~ = 2.8V*1A = 2.8W\n
      \n
      P~Resistor~ = V~s~*I~f~-P~LED~ = 5V*1A-2.8W = 2.2W\n
      \n
      Let me know if the calculations are correct.\n
      \n
      Edit: Calculations
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1688432188 {#4190
      date: 2023-07-04 02:56:28.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
      "@cmnybo@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4194 …}
    +nested: Doctrine\ORM\PersistentCollection {#4196 …}
    +votes: Doctrine\ORM\PersistentCollection {#4198 …}
    +reports: Doctrine\ORM\PersistentCollection {#4200 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4202 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4204 …}
    -id: 7524
    -bodyTs: "'-2.8':45,71 '/1a':47 '/i':42 '1a':58,70 '2.2':48,73 '2.8':56,59 '2w':33 '3w':31 '5v':44,69 'calcul':20,80,84 'comment':5 'correct':22,82 'could':24 'edit':83 'hey':1 'know':77 'led':16,28 'less':29 'let':75 'look':7 'p':50,61,67 'power':26 'r':37 'resistor':11 'seri':13 'thank':2 'use':9 'v':38,40,46,52,57,63 'w':60,72,74 'wast':36 'would':34 '~f':41,43,53,55,66 '~led':51,68 '~resistor':62 '~s':39,64 'ω':49"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/597544"
    +editedAt: DateTimeImmutable @1688432995 {#4191
      date: 2023-07-04 03:09:55.0 +02:00
    }
    +createdAt: DateTimeImmutable @1688432188 {#4192
      date: 2023-07-04 02:56:28.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4049}
  +body: """
    Those calculations are correct.\n
    \n
    Since the remote control signals are short and low duty cycle, you could use a capacitor to provide the peak current for the LED without going over the maximum current of the power supply.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688440552 {#4228
    date: 2023-07-04 05:15:52.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@cmnybo@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4231 …}
  +nested: Doctrine\ORM\PersistentCollection {#4233 …}
  +votes: Doctrine\ORM\PersistentCollection {#4235 …}
  +reports: Doctrine\ORM\PersistentCollection {#4237 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4239 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4241 …}
  -id: 7558
  -bodyTs: "'calcul':2 'capacitor':20 'control':8 'correct':4 'could':17 'current':25,34 'cycl':15 'duti':14 'go':30 'led':28 'low':13 'maximum':33 'peak':24 'power':37 'provid':22 'remot':7 'short':11 'signal':9 'sinc':5 'suppli':38 'use':18 'without':29"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/600360"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688440552 {#4229
    date: 2023-07-04 05:15:52.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 {#4230
  +user: App\Entity\User {#3997 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4193
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4049
      +user: App\Entity\User {#3997 …}
      +entry: App\Entity\Entry {#2388}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        I would just use a MOSFET and resistor to drive the LED if you are only using it in short bursts.\n
        \n
        If you want to drive the MOSFET directly from the microcontroller pin, it will need a series resistor to limit the current since the gate has quite a bit of capacitance. If your microcontroller pins can handle 15-20mA, it will be able to switch an AO3400A fast enough without needing a gate driver.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 0
      +score: 0
      +lastActive: DateTime @1688440553 {#4058
        date: 2023-07-04 05:15:53.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@silvio2402@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4047 …}
      +nested: Doctrine\ORM\PersistentCollection {#4045 …}
      +votes: Doctrine\ORM\PersistentCollection {#4043 …}
      +reports: Doctrine\ORM\PersistentCollection {#4041 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4009 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4013 …}
      -id: 7516
      -bodyTs: "'-20':60 '15':59 'abl':65 'ao3400a':69 'bit':50 'burst':21 'capacit':52 'current':43 'direct':29 'drive':10,26 'driver':76 'enough':71 'fast':70 'gate':46,75 'handl':58 'led':12 'limit':41 'ma':61 'microcontrol':32,55 'mosfet':6,28 'need':36,73 'pin':33,56 'quit':48 'resistor':8,39 'seri':38 'short':20 'sinc':44 'switch':67 'use':4,17 'want':24 'without':72 'would':2"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://discuss.tchncs.de/comment/596704"
      +editedAt: null
      +createdAt: DateTimeImmutable @1688429807 {#3994
        date: 2023-07-04 02:16:47.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4049}
    +body: """
      Hey, thanks for your comment. I looked at using a resistor in series with the LED, but if my calculations were correct I could only power the LED less than 3W and 2W would be wasted.\n
      \n
      R = (V~s~-V~f~)/I~f~ = (5V-2.8V)/1A = 2.2Ω\n
      \n
      P~LED~ = V~f~*I~f~ = 2.8V*1A = 2.8W\n
      \n
      P~Resistor~ = V~s~*I~f~-P~LED~ = 5V*1A-2.8W = 2.2W\n
      \n
      Let me know if the calculations are correct.\n
      \n
      Edit: Calculations
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1688432188 {#4190
      date: 2023-07-04 02:56:28.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
      "@cmnybo@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4194 …}
    +nested: Doctrine\ORM\PersistentCollection {#4196 …}
    +votes: Doctrine\ORM\PersistentCollection {#4198 …}
    +reports: Doctrine\ORM\PersistentCollection {#4200 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4202 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4204 …}
    -id: 7524
    -bodyTs: "'-2.8':45,71 '/1a':47 '/i':42 '1a':58,70 '2.2':48,73 '2.8':56,59 '2w':33 '3w':31 '5v':44,69 'calcul':20,80,84 'comment':5 'correct':22,82 'could':24 'edit':83 'hey':1 'know':77 'led':16,28 'less':29 'let':75 'look':7 'p':50,61,67 'power':26 'r':37 'resistor':11 'seri':13 'thank':2 'use':9 'v':38,40,46,52,57,63 'w':60,72,74 'wast':36 'would':34 '~f':41,43,53,55,66 '~led':51,68 '~resistor':62 '~s':39,64 'ω':49"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/597544"
    +editedAt: DateTimeImmutable @1688432995 {#4191
      date: 2023-07-04 03:09:55.0 +02:00
    }
    +createdAt: DateTimeImmutable @1688432188 {#4192
      date: 2023-07-04 02:56:28.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4049}
  +body: """
    Those calculations are correct.\n
    \n
    Since the remote control signals are short and low duty cycle, you could use a capacitor to provide the peak current for the LED without going over the maximum current of the power supply.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688440552 {#4228
    date: 2023-07-04 05:15:52.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@cmnybo@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4231 …}
  +nested: Doctrine\ORM\PersistentCollection {#4233 …}
  +votes: Doctrine\ORM\PersistentCollection {#4235 …}
  +reports: Doctrine\ORM\PersistentCollection {#4237 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4239 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4241 …}
  -id: 7558
  -bodyTs: "'calcul':2 'capacitor':20 'control':8 'correct':4 'could':17 'current':25,34 'cycl':15 'duti':14 'go':30 'led':28 'low':13 'maximum':33 'peak':24 'power':37 'provid':22 'remot':7 'short':11 'signal':9 'sinc':5 'suppli':38 'use':18 'without':29"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/600360"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688440552 {#4229
    date: 2023-07-04 05:15:52.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 {#4086
  +user: App\Entity\User {#4069 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
    \n
    This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
    \n
    [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1688433083 {#4087
    date: 2023-07-04 03:11:23.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4084 …}
  +nested: Doctrine\ORM\PersistentCollection {#4082 …}
  +votes: Doctrine\ORM\PersistentCollection {#4080 …}
  +reports: Doctrine\ORM\PersistentCollection {#4077 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
  -id: 7512
  -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/788676"
  +editedAt: DateTimeImmutable @1688426164 {#4092
    date: 2023-07-04 01:16:04.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688426087 {#4090
    date: 2023-07-04 01:14:47.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 {#4086
  +user: App\Entity\User {#4069 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
    \n
    This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
    \n
    [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1688433083 {#4087
    date: 2023-07-04 03:11:23.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4084 …}
  +nested: Doctrine\ORM\PersistentCollection {#4082 …}
  +votes: Doctrine\ORM\PersistentCollection {#4080 …}
  +reports: Doctrine\ORM\PersistentCollection {#4077 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
  -id: 7512
  -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/788676"
  +editedAt: DateTimeImmutable @1688426164 {#4092
    date: 2023-07-04 01:16:04.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688426087 {#4090
    date: 2023-07-04 01:14:47.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 {#4086
  +user: App\Entity\User {#4069 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: """
    I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
    \n
    This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
    \n
    [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1688433083 {#4087
    date: 2023-07-04 03:11:23.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4084 …}
  +nested: Doctrine\ORM\PersistentCollection {#4082 …}
  +votes: Doctrine\ORM\PersistentCollection {#4080 …}
  +reports: Doctrine\ORM\PersistentCollection {#4077 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
  -id: 7512
  -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/788676"
  +editedAt: DateTimeImmutable @1688426164 {#4092
    date: 2023-07-04 01:16:04.0 +02:00
  }
  +createdAt: DateTimeImmutable @1688426087 {#4090
    date: 2023-07-04 01:14:47.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 {#4169
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4086
    +user: App\Entity\User {#4069 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
      \n
      This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
      \n
      [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1688433083 {#4087
      date: 2023-07-04 03:11:23.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4084 …}
    +nested: Doctrine\ORM\PersistentCollection {#4082 …}
    +votes: Doctrine\ORM\PersistentCollection {#4080 …}
    +reports: Doctrine\ORM\PersistentCollection {#4077 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
    -id: 7512
    -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/788676"
    +editedAt: DateTimeImmutable @1688426164 {#4092
      date: 2023-07-04 01:16:04.0 +02:00
    }
    +createdAt: DateTimeImmutable @1688426087 {#4090
      date: 2023-07-04 01:14:47.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4086}
  +body: "Hey, thanks for your comment. I’ll look into the MAX16834 as soon as I have time tomorrow. Also, how would I be able to use a constant current driver with shunt dimming? How would I go about calculating the time a constant current source takes to recover from a short?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688432028 {#4174
    date: 2023-07-04 02:53:48.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@lemmyman@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4177 …}
  +nested: Doctrine\ORM\PersistentCollection {#4181 …}
  +votes: Doctrine\ORM\PersistentCollection {#4183 …}
  +reports: Doctrine\ORM\PersistentCollection {#4184 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4186 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4188 …}
  -id: 7522
  -bodyTs: "'abl':24 'also':19 'calcul':39 'comment':5 'constant':28,43 'current':29,44 'dim':33 'driver':30 'go':37 'hey':1 'll':7 'look':8 'max16834':11 'recov':48 'short':51 'shunt':32 'soon':13 'sourc':45 'take':46 'thank':2 'time':17,41 'tomorrow':18 'use':26 'would':21,35"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/597480"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688432028 {#4171
    date: 2023-07-04 02:53:48.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 {#4169
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4086
    +user: App\Entity\User {#4069 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
      \n
      This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
      \n
      [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1688433083 {#4087
      date: 2023-07-04 03:11:23.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4084 …}
    +nested: Doctrine\ORM\PersistentCollection {#4082 …}
    +votes: Doctrine\ORM\PersistentCollection {#4080 …}
    +reports: Doctrine\ORM\PersistentCollection {#4077 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
    -id: 7512
    -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/788676"
    +editedAt: DateTimeImmutable @1688426164 {#4092
      date: 2023-07-04 01:16:04.0 +02:00
    }
    +createdAt: DateTimeImmutable @1688426087 {#4090
      date: 2023-07-04 01:14:47.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4086}
  +body: "Hey, thanks for your comment. I’ll look into the MAX16834 as soon as I have time tomorrow. Also, how would I be able to use a constant current driver with shunt dimming? How would I go about calculating the time a constant current source takes to recover from a short?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688432028 {#4174
    date: 2023-07-04 02:53:48.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@lemmyman@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4177 …}
  +nested: Doctrine\ORM\PersistentCollection {#4181 …}
  +votes: Doctrine\ORM\PersistentCollection {#4183 …}
  +reports: Doctrine\ORM\PersistentCollection {#4184 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4186 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4188 …}
  -id: 7522
  -bodyTs: "'abl':24 'also':19 'calcul':39 'comment':5 'constant':28,43 'current':29,44 'dim':33 'driver':30 'go':37 'hey':1 'll':7 'look':8 'max16834':11 'recov':48 'short':51 'shunt':32 'soon':13 'sourc':45 'take':46 'thank':2 'time':17,41 'tomorrow':18 'use':26 'would':21,35"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/597480"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688432028 {#4171
    date: 2023-07-04 02:53:48.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 {#4169
  +user: Proxies\__CG__\App\Entity\User {#1943 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4086
    +user: App\Entity\User {#4069 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: """
      I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
      \n
      This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
      \n
      [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1688433083 {#4087
      date: 2023-07-04 03:11:23.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4084 …}
    +nested: Doctrine\ORM\PersistentCollection {#4082 …}
    +votes: Doctrine\ORM\PersistentCollection {#4080 …}
    +reports: Doctrine\ORM\PersistentCollection {#4077 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
    -id: 7512
    -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/788676"
    +editedAt: DateTimeImmutable @1688426164 {#4092
      date: 2023-07-04 01:16:04.0 +02:00
    }
    +createdAt: DateTimeImmutable @1688426087 {#4090
      date: 2023-07-04 01:14:47.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4086}
  +body: "Hey, thanks for your comment. I’ll look into the MAX16834 as soon as I have time tomorrow. Also, how would I be able to use a constant current driver with shunt dimming? How would I go about calculating the time a constant current source takes to recover from a short?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1688432028 {#4174
    date: 2023-07-04 02:53:48.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@lemmyman@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4177 …}
  +nested: Doctrine\ORM\PersistentCollection {#4181 …}
  +votes: Doctrine\ORM\PersistentCollection {#4183 …}
  +reports: Doctrine\ORM\PersistentCollection {#4184 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4186 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4188 …}
  -id: 7522
  -bodyTs: "'abl':24 'also':19 'calcul':39 'comment':5 'constant':28,43 'current':29,44 'dim':33 'driver':30 'go':37 'hey':1 'll':7 'look':8 'max16834':11 'recov':48 'short':51 'shunt':32 'soon':13 'sourc':45 'take':46 'thank':2 'time':17,41 'tomorrow':18 'use':26 'would':21,35"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/597480"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688432028 {#4171
    date: 2023-07-04 02:53:48.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 {#4207
  +user: App\Entity\User {#4069 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4169
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4086
      +user: App\Entity\User {#4069 …}
      +entry: App\Entity\Entry {#2388}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
        \n
        This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
        \n
        [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1688433083 {#4087
        date: 2023-07-04 03:11:23.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@silvio2402@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4084 …}
      +nested: Doctrine\ORM\PersistentCollection {#4082 …}
      +votes: Doctrine\ORM\PersistentCollection {#4080 …}
      +reports: Doctrine\ORM\PersistentCollection {#4077 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
      -id: 7512
      -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/788676"
      +editedAt: DateTimeImmutable @1688426164 {#4092
        date: 2023-07-04 01:16:04.0 +02:00
      }
      +createdAt: DateTimeImmutable @1688426087 {#4090
        date: 2023-07-04 01:14:47.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4086}
    +body: "Hey, thanks for your comment. I’ll look into the MAX16834 as soon as I have time tomorrow. Also, how would I be able to use a constant current driver with shunt dimming? How would I go about calculating the time a constant current source takes to recover from a short?"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688432028 {#4174
      date: 2023-07-04 02:53:48.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
      "@lemmyman@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4177 …}
    +nested: Doctrine\ORM\PersistentCollection {#4181 …}
    +votes: Doctrine\ORM\PersistentCollection {#4183 …}
    +reports: Doctrine\ORM\PersistentCollection {#4184 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4186 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4188 …}
    -id: 7522
    -bodyTs: "'abl':24 'also':19 'calcul':39 'comment':5 'constant':28,43 'current':29,44 'dim':33 'driver':30 'go':37 'hey':1 'll':7 'look':8 'max16834':11 'recov':48 'short':51 'shunt':32 'soon':13 'sourc':45 'take':46 'thank':2 'time':17,41 'tomorrow':18 'use':26 'would':21,35"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/597480"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688432028 {#4171
      date: 2023-07-04 02:53:48.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4086}
  +body: """
    > How would I go about calculating the time a constant current source takes to recover from a short?\n
    \n
    To the extent possible, I’d look for graphs of “load regulation” in the datasheet, which graphically depict the regulator’s response to a load change. But that seems like maybe an uncommon thing for LED drivers (neither of the two parts we’ve been discussing have those in their datasheets).\n
    \n
    Alternatively, if the regulator lists its control bandwidth in the datasheet, you could use the old [rule of thumb](https://www.edn.com/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/) to relate that to the rise time. For instance, if you’re modulating at 38 kHz, and you want to be sure your rise time is less than 10% of a period, you’d want it to be less than 1/380,000 = 2.6 microseconds. From the article, you’d want a control bandwidth of no less than 0.35/2.6 microseconds = 133 kHz. (or you could just say you want a bandwidth at least 3.5x your carrier frequency).\n
    \n
    Using that metric, the MAX16834 is more than capable - yet despite that, the datasheet suggests (not a hard spec) that PWM dimming is functional only up to 20 kHz. I don’t know how to explain that discrepancy. This is where I’d buy an eval kit and try it out to see what I’m missing.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688433081 {#4212
    date: 2023-07-04 03:11:21.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@lemmyman@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4215 …}
  +nested: Doctrine\ORM\PersistentCollection {#4219 …}
  +votes: Doctrine\ORM\PersistentCollection {#4221 …}
  +reports: Doctrine\ORM\PersistentCollection {#4222 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4224 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4226 …}
  -id: 7535
  -bodyTs: "'/2.6':150 '/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/)':91 '0.35':149 '000':133 '1/380':132 '10':120 '133':152 '2.6':134 '20':197 '3.5':165 '38':106 'altern':70 'articl':138 'bandwidth':77,144,162 'buy':213 'calcul':6 'capabl':178 'carrier':168 'chang':44 'constant':10 'control':76,143 'could':82,156 'current':11 'd':24,125,140,212 'datasheet':33,69,80,183 'depict':36 'despit':180 'dim':191 'discrep':207 'discuss':64 'driver':55 'eval':215 'explain':205 'extent':21 'frequenc':169 'function':193 'go':4 'graph':27 'graphic':35 'hard':187 'instanc':100 'khz':107,153,198 'kit':216 'know':202 'least':164 'led':54 'less':118,130,147 'like':48 'list':74 'load':29,43 'look':25 'm':225 'max16834':174 'mayb':49 'metric':172 'microsecond':135,151 'miss':226 'modul':104 'neither':56 'old':85 'part':60 'period':123 'possibl':22 'pwm':190 're':103 'recov':15 'regul':30,38,73 'relat':93 'respons':40 'rise':97,115 'rule':86 'say':158 'see':222 'seem':47 'short':18 'sourc':12 'spec':188 'suggest':184 'sure':113 'take':13 'thing':52 'thumb':88 'time':8,98,116 'tri':218 'two':59 'uncommon':51 'use':83,170 've':62 'want':110,126,141,160 'would':2 'www.edn.com':90 'www.edn.com/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/)':89 'x':166 'yet':179"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/791618"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688433081 {#4209
    date: 2023-07-04 03:11:21.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 {#4207
  +user: App\Entity\User {#4069 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4169
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4086
      +user: App\Entity\User {#4069 …}
      +entry: App\Entity\Entry {#2388}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
        \n
        This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
        \n
        [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1688433083 {#4087
        date: 2023-07-04 03:11:23.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@silvio2402@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4084 …}
      +nested: Doctrine\ORM\PersistentCollection {#4082 …}
      +votes: Doctrine\ORM\PersistentCollection {#4080 …}
      +reports: Doctrine\ORM\PersistentCollection {#4077 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
      -id: 7512
      -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/788676"
      +editedAt: DateTimeImmutable @1688426164 {#4092
        date: 2023-07-04 01:16:04.0 +02:00
      }
      +createdAt: DateTimeImmutable @1688426087 {#4090
        date: 2023-07-04 01:14:47.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4086}
    +body: "Hey, thanks for your comment. I’ll look into the MAX16834 as soon as I have time tomorrow. Also, how would I be able to use a constant current driver with shunt dimming? How would I go about calculating the time a constant current source takes to recover from a short?"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688432028 {#4174
      date: 2023-07-04 02:53:48.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
      "@lemmyman@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4177 …}
    +nested: Doctrine\ORM\PersistentCollection {#4181 …}
    +votes: Doctrine\ORM\PersistentCollection {#4183 …}
    +reports: Doctrine\ORM\PersistentCollection {#4184 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4186 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4188 …}
    -id: 7522
    -bodyTs: "'abl':24 'also':19 'calcul':39 'comment':5 'constant':28,43 'current':29,44 'dim':33 'driver':30 'go':37 'hey':1 'll':7 'look':8 'max16834':11 'recov':48 'short':51 'shunt':32 'soon':13 'sourc':45 'take':46 'thank':2 'time':17,41 'tomorrow':18 'use':26 'would':21,35"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/597480"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688432028 {#4171
      date: 2023-07-04 02:53:48.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4086}
  +body: """
    > How would I go about calculating the time a constant current source takes to recover from a short?\n
    \n
    To the extent possible, I’d look for graphs of “load regulation” in the datasheet, which graphically depict the regulator’s response to a load change. But that seems like maybe an uncommon thing for LED drivers (neither of the two parts we’ve been discussing have those in their datasheets).\n
    \n
    Alternatively, if the regulator lists its control bandwidth in the datasheet, you could use the old [rule of thumb](https://www.edn.com/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/) to relate that to the rise time. For instance, if you’re modulating at 38 kHz, and you want to be sure your rise time is less than 10% of a period, you’d want it to be less than 1/380,000 = 2.6 microseconds. From the article, you’d want a control bandwidth of no less than 0.35/2.6 microseconds = 133 kHz. (or you could just say you want a bandwidth at least 3.5x your carrier frequency).\n
    \n
    Using that metric, the MAX16834 is more than capable - yet despite that, the datasheet suggests (not a hard spec) that PWM dimming is functional only up to 20 kHz. I don’t know how to explain that discrepancy. This is where I’d buy an eval kit and try it out to see what I’m missing.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688433081 {#4212
    date: 2023-07-04 03:11:21.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@lemmyman@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4215 …}
  +nested: Doctrine\ORM\PersistentCollection {#4219 …}
  +votes: Doctrine\ORM\PersistentCollection {#4221 …}
  +reports: Doctrine\ORM\PersistentCollection {#4222 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4224 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4226 …}
  -id: 7535
  -bodyTs: "'/2.6':150 '/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/)':91 '0.35':149 '000':133 '1/380':132 '10':120 '133':152 '2.6':134 '20':197 '3.5':165 '38':106 'altern':70 'articl':138 'bandwidth':77,144,162 'buy':213 'calcul':6 'capabl':178 'carrier':168 'chang':44 'constant':10 'control':76,143 'could':82,156 'current':11 'd':24,125,140,212 'datasheet':33,69,80,183 'depict':36 'despit':180 'dim':191 'discrep':207 'discuss':64 'driver':55 'eval':215 'explain':205 'extent':21 'frequenc':169 'function':193 'go':4 'graph':27 'graphic':35 'hard':187 'instanc':100 'khz':107,153,198 'kit':216 'know':202 'least':164 'led':54 'less':118,130,147 'like':48 'list':74 'load':29,43 'look':25 'm':225 'max16834':174 'mayb':49 'metric':172 'microsecond':135,151 'miss':226 'modul':104 'neither':56 'old':85 'part':60 'period':123 'possibl':22 'pwm':190 're':103 'recov':15 'regul':30,38,73 'relat':93 'respons':40 'rise':97,115 'rule':86 'say':158 'see':222 'seem':47 'short':18 'sourc':12 'spec':188 'suggest':184 'sure':113 'take':13 'thing':52 'thumb':88 'time':8,98,116 'tri':218 'two':59 'uncommon':51 'use':83,170 've':62 'want':110,126,141,160 'would':2 'www.edn.com':90 'www.edn.com/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/)':89 'x':166 'yet':179"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/791618"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688433081 {#4209
    date: 2023-07-04 03:11:21.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 {#4207
  +user: App\Entity\User {#4069 …}
  +entry: App\Entity\Entry {#2388
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +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 {#276
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -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 {#270
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#272
        date: 2023-06-19 05:13:29.0 +02:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1912 …}
    +slug: "Can-I-switch-this-constant-current-LED-driver-at-38kHz"
    +title: "Can I switch this constant current LED driver at 38kHz?"
    +url: null
    +body: """
      My goal is to drive an infrared LED like ([this SFH 4727AS](https://dammedia.osram.info/media/resource/hires/osram-dam-5723342/SFH%204727AS_EN.pdf)) to control IR remote controlled devices (for example a TV).\n
      \n
      I can already output the signal on a pin of my microcontroller. The signal has a carrier frequency of 38kHz.\n
      \n
      I am however limited to a 5V 1A power supply and would like to drive the LED as close to the 5W psu limit as possible.\n
      \n
      I first thought about using a MOSFET like [this AO3400A](https://aosmd.com/sites/default/files/res/data_sheets/AO3400A.pdf) together with a resistor, but decided it was worth using an LED driver, do you agree?\n
      \n
      Now I’m looking at [this PAM2804](https://www.diodes.com/assets/Datasheets/PAM2804.pdf) constant current LED driver but I’m not sure if I can just supply my signal to the EN pin. The EN pin is meant for PWM-dimming, so does that mean the output is smoothed to prevent flickering?\n
      \n
      I’d love to hear your thoughts about how I should go about this. Thanks
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 6
    +favouriteCount: 3
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1688440552 {#2410
      date: 2023-07-04 05:15:52.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1866 …}
    +votes: Doctrine\ORM\PersistentCollection {#1978 …}
    +reports: Doctrine\ORM\PersistentCollection {#1946 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1971 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2443 …}
    +badges: Doctrine\ORM\PersistentCollection {#2426 …}
    +children: []
    -id: 749
    -titleTs: "'38khz':10 'constant':5 'current':6 'driver':8 'led':7 'switch':3"
    -bodyTs: "'/assets/datasheets/pam2804.pdf)':110 '/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':15 '/sites/default/files/res/data_sheets/ao3400a.pdf)':84 '1a':53 '38khz':45 '4727as':12 '5v':52 '5w':67 'agre':100 'alreadi':28 'ao3400a':81 'aosmd.com':83 'aosmd.com/sites/default/files/res/data_sheets/ao3400a.pdf)':82 'carrier':42 'close':64 'constant':111 'control':17,20 'current':112 'd':152 'dammedia.osram.info':14 'dammedia.osram.info/media/resource/hires/osram-dam-5723342/sfh%204727as_en.pdf))':13 'decid':90 'devic':21 'dim':139 'drive':5,60 'driver':97,114 'en':129,132 'exampl':23 'first':73 'flicker':150 'frequenc':43 'go':162 'goal':2 'hear':155 'howev':48 'infrar':7 'ir':18 'led':8,62,96,113 'like':9,58,79 'limit':49,69 'look':104 'love':153 'm':103,117 'mean':143 'meant':135 'microcontrol':37 'mosfet':78 'output':29,145 'pam2804':107 'pin':34,130,133 'possibl':71 'power':54 'prevent':149 'psu':68 'pwm':138 'pwm-dim':137 'remot':19 'resistor':88 'sfh':11 'signal':31,39,126 'smooth':147 'suppli':55,124 'sure':119 'thank':165 'thought':74,157 'togeth':85 'tv':25 'use':76,94 'worth':93 'would':57 'www.diodes.com':109 'www.diodes.com/assets/datasheets/pam2804.pdf)':108"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1688452507
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/post/465080"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688424007 {#1850
      date: 2023-07-04 00:40:07.0 +02:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4169
    +user: Proxies\__CG__\App\Entity\User {#1943 …}
    +entry: App\Entity\Entry {#2388}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4086
      +user: App\Entity\User {#4069 …}
      +entry: App\Entity\Entry {#2388}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: """
        I wouldn’t use the PAM2804. The datasheet recommends a PWM frequency of 500 Hz, and if you look at the “PWM Dimming: ILED vs. Duty Cycle” chart on page 5 you can see why - at 1 kHz there is already a significant reduction in the average LED current. The enable response just isn’t fast enough to modulate at 38 kHz - by the time you want to turn it off, it will barely be on.\n
        \n
        This isn’t quite enough for your 38 kHz either, but it’s closer (and waaaay more complicated): [MAX16834](https://www.analog.com/en/products/max16834.html#product-overview). The datasheet says it can do up to 20 kHz, but at a glance I did not see a particular spec that seems to actually limit that.\n
        \n
        [Here’s an article](https://e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming) about fast switching LEDs. All the linked products unfortunately have supply voltage ratings above yours, so they won’t work. But it discusses the concept of shunt dimming, where you’d end up simply bypassing the current around the LED rather than actually turning off the current regulator. Inefficient, yes.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1688433083 {#4087
        date: 2023-07-04 03:11:23.0 +02:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@silvio2402@discuss.tchncs.de"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4084 …}
      +nested: Doctrine\ORM\PersistentCollection {#4082 …}
      +votes: Doctrine\ORM\PersistentCollection {#4080 …}
      +reports: Doctrine\ORM\PersistentCollection {#4077 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4073 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4071 …}
      -id: 7512
      -bodyTs: "'/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':132 '/en/products/max16834.html#product-overview).':98 '1':37 '20':107 '38':61,84 '5':31 '500':14 'actual':123,175 'alreadi':41 'around':170 'articl':129 'averag':47 'bare':74 'bypass':167 'chart':28 'closer':90 'complic':94 'concept':157 'current':49,169,179 'cycl':27 'd':163 'datasheet':8,100 'dim':23,160 'discuss':155 'duti':26 'e2e.ti.com':131 'e2e.ti.com/blogs_/b/powerhouse/posts/led-brightness-adjustment-high-frequency-pwm-dimming)':130 'either':86 'enabl':51 'end':164 'enough':57,81 'fast':56,134 'frequenc':12 'glanc':112 'hz':15 'ile':24 'ineffici':181 'isn':54,78 'khz':38,62,85,108 'led':48,136,172 'limit':124 'link':139 'look':19 'max16834':95 'modul':59 'page':30 'pam2804':6 'particular':118 'product':140 'pwm':11,22 'quit':80 'rate':145 'rather':173 'recommend':9 'reduct':44 'regul':180 'respons':52 'say':101 'see':34,116 'seem':121 'shunt':159 'signific':43 'simpli':166 'spec':119 'suppli':143 'switch':135 'time':65 'turn':69,176 'unfortun':141 'use':4 'voltag':144 'vs':25 'waaaay':92 'want':67 'won':150 'work':152 'wouldn':2 'www.analog.com':97 'www.analog.com/en/products/max16834.html#product-overview).':96 'yes':182"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/788676"
      +editedAt: DateTimeImmutable @1688426164 {#4092
        date: 2023-07-04 01:16:04.0 +02:00
      }
      +createdAt: DateTimeImmutable @1688426087 {#4090
        date: 2023-07-04 01:14:47.0 +02:00
      }
    }
    +root: App\Entity\EntryComment {#4086}
    +body: "Hey, thanks for your comment. I’ll look into the MAX16834 as soon as I have time tomorrow. Also, how would I be able to use a constant current driver with shunt dimming? How would I go about calculating the time a constant current source takes to recover from a short?"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1688432028 {#4174
      date: 2023-07-04 02:53:48.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@silvio2402@discuss.tchncs.de"
      "@lemmyman@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4177 …}
    +nested: Doctrine\ORM\PersistentCollection {#4181 …}
    +votes: Doctrine\ORM\PersistentCollection {#4183 …}
    +reports: Doctrine\ORM\PersistentCollection {#4184 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4186 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4188 …}
    -id: 7522
    -bodyTs: "'abl':24 'also':19 'calcul':39 'comment':5 'constant':28,43 'current':29,44 'dim':33 'driver':30 'go':37 'hey':1 'll':7 'look':8 'max16834':11 'recov':48 'short':51 'shunt':32 'soon':13 'sourc':45 'take':46 'thank':2 'time':17,41 'tomorrow':18 'use':26 'would':21,35"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/597480"
    +editedAt: null
    +createdAt: DateTimeImmutable @1688432028 {#4171
      date: 2023-07-04 02:53:48.0 +02:00
    }
  }
  +root: App\Entity\EntryComment {#4086}
  +body: """
    > How would I go about calculating the time a constant current source takes to recover from a short?\n
    \n
    To the extent possible, I’d look for graphs of “load regulation” in the datasheet, which graphically depict the regulator’s response to a load change. But that seems like maybe an uncommon thing for LED drivers (neither of the two parts we’ve been discussing have those in their datasheets).\n
    \n
    Alternatively, if the regulator lists its control bandwidth in the datasheet, you could use the old [rule of thumb](https://www.edn.com/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/) to relate that to the rise time. For instance, if you’re modulating at 38 kHz, and you want to be sure your rise time is less than 10% of a period, you’d want it to be less than 1/380,000 = 2.6 microseconds. From the article, you’d want a control bandwidth of no less than 0.35/2.6 microseconds = 133 kHz. (or you could just say you want a bandwidth at least 3.5x your carrier frequency).\n
    \n
    Using that metric, the MAX16834 is more than capable - yet despite that, the datasheet suggests (not a hard spec) that PWM dimming is functional only up to 20 kHz. I don’t know how to explain that discrepancy. This is where I’d buy an eval kit and try it out to see what I’m missing.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1688433081 {#4212
    date: 2023-07-04 03:11:21.0 +02:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@silvio2402@discuss.tchncs.de"
    "@lemmyman@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4215 …}
  +nested: Doctrine\ORM\PersistentCollection {#4219 …}
  +votes: Doctrine\ORM\PersistentCollection {#4221 …}
  +reports: Doctrine\ORM\PersistentCollection {#4222 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4224 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4226 …}
  -id: 7535
  -bodyTs: "'/2.6':150 '/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/)':91 '0.35':149 '000':133 '1/380':132 '10':120 '133':152 '2.6':134 '20':197 '3.5':165 '38':106 'altern':70 'articl':138 'bandwidth':77,144,162 'buy':213 'calcul':6 'capabl':178 'carrier':168 'chang':44 'constant':10 'control':76,143 'could':82,156 'current':11 'd':24,125,140,212 'datasheet':33,69,80,183 'depict':36 'despit':180 'dim':191 'discrep':207 'discuss':64 'driver':55 'eval':215 'explain':205 'extent':21 'frequenc':169 'function':193 'go':4 'graph':27 'graphic':35 'hard':187 'instanc':100 'khz':107,153,198 'kit':216 'know':202 'least':164 'led':54 'less':118,130,147 'like':48 'list':74 'load':29,43 'look':25 'm':225 'max16834':174 'mayb':49 'metric':172 'microsecond':135,151 'miss':226 'modul':104 'neither':56 'old':85 'part':60 'period':123 'possibl':22 'pwm':190 're':103 'recov':15 'regul':30,38,73 'relat':93 'respons':40 'rise':97,115 'rule':86 'say':158 'see':222 'seem':47 'short':18 'sourc':12 'spec':188 'suggest':184 'sure':113 'take':13 'thing':52 'thumb':88 'time':8,98,116 'tri':218 'two':59 'uncommon':51 'use':83,170 've':62 'want':110,126,141,160 'would':2 'www.edn.com':90 'www.edn.com/rule-of-thumb-1-bandwidth-of-a-signal-from-its-rise-time/)':89 'x':166 'yet':179"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/791618"
  +editedAt: null
  +createdAt: DateTimeImmutable @1688433081 {#4209
    date: 2023-07-04 03:11:21.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 edit
App\Entity\Magazine {#266
  +icon: Proxies\__CG__\App\Entity\Image {#247 …}
  +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 {#276
    date: 2024-10-20 10:40:08.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#238 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
  +entries: Doctrine\ORM\PersistentCollection {#181 …}
  +posts: Doctrine\ORM\PersistentCollection {#139 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
  +bans: Doctrine\ORM\PersistentCollection {#118 …}
  +reports: Doctrine\ORM\PersistentCollection {#104 …}
  +badges: Doctrine\ORM\PersistentCollection {#82 …}
  +logs: Doctrine\ORM\PersistentCollection {#72 …}
  +awards: Doctrine\ORM\PersistentCollection {#61 …}
  +categories: Doctrine\ORM\PersistentCollection {#1820 …}
  -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 {#270
    date: 2024-09-25 09:01:54.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1687144409 {#272
    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