Components
21
Twig Components
52
Render Count
41
ms
Render Time
12.0
MiB
Memory Usage
Components
Render calls
user_box | App\Twig\Components\UserBoxComponent | 12.0 MiB | 2.47 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } "stretchedLink" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserBoxComponent {#2036 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +stretchedLink: false } |
user_actions | App\Twig\Components\UserActionsComponent | 12.0 MiB | 1.15 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserActionsComponent {#2304 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } } |
entry | App\Twig\Components\EntryComponent | 12.0 MiB | 14.12 ms | |
---|---|---|---|---|
Input props | [ "entry" => Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } "dateAsUrl" => true ] |
|||
Attributes | [ "dateAsUrl" => true ] |
|||
Component | App\Twig\Components\EntryComponent {#2809 -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#2810 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +isSingle: false +showShortSentence: true +showBody: false +showMagazineName: true +canSeeTrash: false +newComments: 0 } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 3.18 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#3048 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.41 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#3176 +date: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } "editedAt" => DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#3240 +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } } |
magazine_inline | App\Twig\Components\MagazineInlineComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "magazine" => Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\MagazineInlineComponent {#3305 +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +showTitle: true +fullName: false +stretchedLink: false +showAvatar: false } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.45 ms | |
---|---|---|---|---|
Input props | [ "subject" => Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#3371 +subject: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +formDest: "entry" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 1.20 ms | |
---|---|---|---|---|
Input props | [ "subject" => Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#3436 +formDest: "entry" +subject: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 5.40 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614} 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } "showEntryTitle" => false "dateAsUrl" => true "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#3752 +comment: App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614} 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } +showMagazineName: false +showEntryTitle: false +showNested: false +level: 1 +canSeeTrash: false +dateAsUrl: true -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#3811 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#3869 +date: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.10 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } "editedAt" => DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#3923 +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.24 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#3979 +width: 40 +height: 40 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.36 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614} 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#4070 +subject: App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614} 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.66 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614} 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#4127 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#1614 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614} 0 => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 5.05 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525} ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } "showEntryTitle" => false "dateAsUrl" => true "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#4381 +comment: App\Entity\EntryComment {#1525 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525} ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } +showMagazineName: false +showEntryTitle: false +showNested: false +level: 1 +canSeeTrash: false +dateAsUrl: true -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#4426 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#4482 +date: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.09 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#4536 +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#4590 +width: 40 +height: 40 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.33 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525} ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#4659 +subject: App\Entity\EntryComment {#1525 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525} ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.68 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1525 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525} ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#4716 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#1525 +user: App\Entity\User {#264 +avatar: null +cover: null +email: "jjagaimo@lemmy.ca" +username: "@jjagaimo@lemmy.ca" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1726525707 {#272 : 2024-09-17 00:28:27.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#252 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#248 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#237 …} +entries: Doctrine\ORM\PersistentCollection {#195 …} +entryVotes: Doctrine\ORM\PersistentCollection {#167 …} +entryComments: Doctrine\ORM\PersistentCollection {#140 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#110 …} +posts: Doctrine\ORM\PersistentCollection {#83 …} +postVotes: Doctrine\ORM\PersistentCollection {#98 …} +postComments: Doctrine\ORM\PersistentCollection {#1801 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1684 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1513 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1919 …} +follows: Doctrine\ORM\PersistentCollection {#1607 …} +followers: Doctrine\ORM\PersistentCollection {#1869 …} +blocks: Doctrine\ORM\PersistentCollection {#1827 …} +blockers: Doctrine\ORM\PersistentCollection {#1856 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1855 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2415 …} +reports: Doctrine\ORM\PersistentCollection {#1803 …} +favourites: Doctrine\ORM\PersistentCollection {#1837 …} +violations: Doctrine\ORM\PersistentCollection {#1791 …} +notifications: Doctrine\ORM\PersistentCollection {#1887 …} +awards: Doctrine\ORM\PersistentCollection {#1949 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1879 …} +categories: Doctrine\ORM\PersistentCollection {#1864 …} -id: 5699 -password: "$2y$13$Mfm9YYdSeud4.IXaL2IEFuQHzvAan10JBSLFIeADVkoSkL5OFHIH." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1893 …} +apId: "jjagaimo@lemmy.ca" +apProfileId: "https://lemmy.ca/u/jjagaimo" +apPublicUrl: "https://lemmy.ca/u/jjagaimo" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ca/inbox" +apDomain: "lemmy.ca" +apPreferredUsername: "jjagaimo" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729032387 {#273 : 2024-10-16 00:46:27.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1578 +user: Proxies\__CG__\App\Entity\User {#2471 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3096 : 2024-07-18 04:09:23.0 +02:00 } +markedForDeletionAt: null +fields: null +oauthGithubId: null +oauthGoogleId: null +oauthFacebookId: null +oauthKeycloakId: null +hideAdult: true +showSubscribedUsers: true +showSubscribedMagazines: true +showSubscribedDomains: true +preferredLanguages: [] +featuredMagazines: null +showProfileSubscriptions: true +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: false +notifyOnNewEntryCommentReply: false +notifyOnNewPost: false +notifyOnNewPostReply: false +notifyOnNewPostCommentReply: false +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#3101 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3104 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3106 …} +entries: Doctrine\ORM\PersistentCollection {#3108 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3110 …} +entryComments: Doctrine\ORM\PersistentCollection {#3112 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3114 …} +posts: Doctrine\ORM\PersistentCollection {#3116 …} +postVotes: Doctrine\ORM\PersistentCollection {#3118 …} +postComments: Doctrine\ORM\PersistentCollection {#3120 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3122 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3124 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3126 …} +follows: Doctrine\ORM\PersistentCollection {#3128 …} +followers: Doctrine\ORM\PersistentCollection {#3130 …} +blocks: Doctrine\ORM\PersistentCollection {#3132 …} +blockers: Doctrine\ORM\PersistentCollection {#3134 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3136 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3138 …} +reports: Doctrine\ORM\PersistentCollection {#3140 …} +favourites: Doctrine\ORM\PersistentCollection {#3142 …} +violations: Doctrine\ORM\PersistentCollection {#3144 …} +notifications: Doctrine\ORM\PersistentCollection {#3146 …} +awards: Doctrine\ORM\PersistentCollection {#3148 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3150 …} +categories: Doctrine\ORM\PersistentCollection {#3152 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3154 …} +apId: "nilclass@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/nilclass" +apPublicUrl: "https://discuss.tchncs.de/u/nilclass" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "nilclass" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1720630912 {#3093 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3095 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 +icon: Proxies\__CG__\App\Entity\Image {#2883 …} +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 {#2862 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2882 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2880 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2885 …} +entries: Doctrine\ORM\PersistentCollection {#2886 …} +posts: Doctrine\ORM\PersistentCollection {#2889 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2891 …} +bans: Doctrine\ORM\PersistentCollection {#2897 …} +reports: Doctrine\ORM\PersistentCollection {#2905 …} +badges: Doctrine\ORM\PersistentCollection {#2918 …} +logs: Doctrine\ORM\PersistentCollection {#2928 …} +awards: Doctrine\ORM\PersistentCollection {#2910 …} +categories: Doctrine\ORM\PersistentCollection {#2934 …} -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 {#2863 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2864 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2385 …} +slug: "How-to-improve-my-battery-measurement-circuit" +title: "How to improve my battery measurement circuit?" +url: null +body: """ I am powering a 5V microcontroller (arduino clone, atmega328p) using a 9V block and a buck converter. Now I want to let the microcontroller occasionally measure the battery voltage, so I can get an idea of how full it is.\n \n My first idea was to use a simple voltage divider:\n \n \n \n I’ve chosen the resistor values so that:\n \n - the voltage at the measure output is `< 1.1V`, to be able to use the 1.1V internal reference of the atmega’s ADC\n - `R1 || R2 < 10kΩ`, since the atmega datasheet says “The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ or less”\n \n This is great and all, but what bothers me is that this circuit will constantly draw ~100µA from the battery.\n \n So, my next thought was to add a mosfet to the divider, to switch it on only while measuring:\n \n \n \n This is obviously bad, because now when the mosfet is off, the ADC input sees the whole battery voltage.\n \n To address that issue, I’ve added a second mosfet into the measure path:\n \n \n \n This works, and it does not draw any current, except while measuring.\n \n However, it’s quite a few parts. So I’m curious if anyone has an idea how to do this with just a single mosfet. It seems to me like it should be possible, but I haven’t figured out how.\n \n Oh, and if I’m doing something stupid here, please tell me :) """ +type: "article" +lang: "en" +isOc: false +hasEmbed: false +commentCount: 11 +favouriteCount: 17 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1694781042 {#1718 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1564 …} +votes: Doctrine\ORM\PersistentCollection {#1565 …} +reports: Doctrine\ORM\PersistentCollection {#1567 …} +favourites: Doctrine\ORM\PersistentCollection {#1883 …} +notifications: Doctrine\ORM\PersistentCollection {#1874 …} +badges: Doctrine\ORM\PersistentCollection {#1405 …} +children: [ 1 => App\Entity\EntryComment {#1614 +user: App\Entity\User {#264} +entry: Proxies\__CG__\App\Entity\Entry {#1578 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: null +root: null +body: """ You could use a single MOSFET on the high side of the divider and use a cap + diode to boost the voltage and fully turn on the FET:\n \n \n \n My gate driver is fairly crude but you could probably make something a bit better with a PNP transistor and either pull it down or leave it floating, or instead use a szaiklai pair """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1693038333 {#1435 : 2023-08-26 10:25:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#1574 …} +nested: Doctrine\ORM\PersistentCollection {#1588 …} +votes: Doctrine\ORM\PersistentCollection {#1584 …} +reports: Doctrine\ORM\PersistentCollection {#1580 …} +favourites: Doctrine\ORM\PersistentCollection {#1585 …} +notifications: Doctrine\ORM\PersistentCollection {#1654 …} -id: 26785 -bodyTs: "'/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':31 'better':46 'bit':45 'boost':20 'cap':17 'could':2,40 'crude':37 'diod':18 'divid':13 'driver':34 'either':52 'fair':36 'fet':28 'float':59 'fulli':24 'gate':33 'high':9 'instead':61 'leav':57 'lemmy.ca':30 'lemmy.ca/pictrs/image/8b22113e-3ad3-40c1-80ee-e7b3e6be24cb.png)':29 'make':42 'mosfet':6 'pair':65 'pnp':49 'probabl':41 'pull':53 'side':10 'singl':5 'someth':43 'szaiklai':64 'transistor':50 'turn':25 'use':3,15,62 'voltag':22" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2548436" +editedAt: DateTimeImmutable @1692962277 {#1438 : 2023-08-25 13:17:57.0 +02:00 } +createdAt: DateTimeImmutable @1692962079 {#1431 : 2023-08-25 13:14:39.0 +02:00 } +"title": 26785 } 0 => App\Entity\EntryComment {#1525} ] -id: 1944 -titleTs: "'batteri':5 'circuit':7 'improv':3 'measur':6" -bodyTs: "'/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':152 '/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':188 '/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':53 '1.1':69,77 '10':107 '100µa':127 '10kω':88 '5v':5 '9v':12 'abl':73 'ad':178 'adc':85,95,165 'add':137 'address':173 'analog':99 'anyon':213 'approxim':106 'arduino':7 'atmega':83,91 'atmega328p':9 'bad':156 'batteri':28,130,170 'block':13 'bother':118 'buck':16 'chosen':56 'circuit':123 'clone':8 'constant':125 'convert':17 'curious':211 'current':197 'datasheet':92 'discuss.tchncs.de':52,151,187 'discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)':150 'discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)':186 'discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)':51 'divid':50,142 'draw':126,195 'except':198 'figur':239 'first':42 'full':38 'get':33 'great':113 'haven':237 'howev':201 'idea':35,43,216 'imped':104 'input':166 'intern':79 'issu':175 'kω':108 'less':110 'let':22 'like':230 'm':210,246 'measur':26,66,149,184,200 'microcontrol':6,24 'mosfet':139,161,181,225 'next':133 'obvious':155 'occasion':25 'oh':242 'optim':97 'output':67,103 'part':207 'path':185 'pleas':251 'possibl':234 'power':3 'quit':204 'r1':86 'r2':87 'refer':80 'resistor':58 'say':93 'second':180 'see':167 'seem':227 'signal':100 'simpl':48 'sinc':89 'singl':224 'someth':248 'stupid':249 'switch':144 'tell':252 'thought':134 'use':10,46,75 'v':70,78 'valu':59 've':55,177 'voltag':29,49,63,171 'want':20 'whole':169 'work':190" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1693029637 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/2309537" +editedAt: DateTimeImmutable @1692947232 {#1696 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1732 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1575 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1616 …} +root: App\Entity\EntryComment {#1614} +body: "It is an N channel FET. The concept is called “bootstrapping” since Vgs needs to be greater than Vth for the MOSFET to be on. When the FET is on the high side and you want the full 9V on the output, you use the diode to charge the capacitor, and the other side of the cap is 0V. Then, when the other side of the cap is connected to 9V, the charge on the cap can’t go anywhere so the voltage on the other side jumps to 18V. This creates a Vgs of 9V. Ideally you would have something better to drive the gate to fully turn off the FET, but I just used a quick and dirty driver where the bootstrap capacitor directly feeds the gate instead of being the input to the driver. Because if this, the Vgs doesn’t drop completely to 0" +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692976324 {#1666 : 2023-08-25 17:12:04.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@jjagaimo@lemmy.ca" ] +children: Doctrine\ORM\PersistentCollection {#1711 …} +nested: Doctrine\ORM\PersistentCollection {#1692 …} +votes: Doctrine\ORM\PersistentCollection {#1686 …} +reports: Doctrine\ORM\PersistentCollection {#1680 …} +favourites: Doctrine\ORM\PersistentCollection {#1683 …} +notifications: Doctrine\ORM\PersistentCollection {#1702 …} -id: 26797 -bodyTs: "'0':148 '0v':59 '18v':90 '9v':39,71,96 'anywher':80 'better':102 'bootstrap':11,124 'call':10 'cap':57,67,76 'capacitor':50,125 'channel':5 'charg':48,73 'complet':146 'concept':8 'connect':69 'creat':92 'diod':46 'direct':126 'dirti':120 'doesn':143 'drive':104 'driver':121,137 'drop':145 'feed':127 'fet':6,28,112 'full':38 'fulli':108 'gate':106,129 'go':79 'greater':17 'high':32 'ideal':97 'input':134 'instead':130 'jump':88 'mosfet':22 'n':4 'need':14 'output':42 'quick':118 'side':33,54,64,87 'sinc':12 'someth':101 'turn':109 'use':44,116 'vgs':13,94,142 'voltag':83 'vth':19 'want':36 'would':99" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.ca/comment/2554107" +editedAt: null +createdAt: DateTimeImmutable @1692976324 {#1561 : 2023-08-25 17:12:04.0 +02:00 } +"title": 26797 } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
settings_row_enum | App\Twig\Components\SettingsRowEnumComponent | 12.0 MiB | 0.30 ms | |
---|---|---|---|---|
Input props | [ "label" => "Sidebar position" "settingsKey" => "KBIN_GENERAL_SIDEBAR_POSITION" "values" => [ [ "name" => "Left" "value" => "LEFT" ] [ "name" => "Right" "value" => "RIGHT" ] ] "defaultValue" => "RIGHT" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowEnumComponent {#5094 +label: "Sidebar position" +help: "" +settingsKey: "KBIN_GENERAL_SIDEBAR_POSITION" +values: [ [ "name" => "Left" "value" => "LEFT" ] [ "name" => "Right" "value" => "RIGHT" ] ] +defaultValue: "RIGHT" +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.28 ms | |
---|---|---|---|---|
Input props | [ "label" => "Dynamic lists" "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5166 +label: "Dynamic lists" +help: "" +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Rounded edges" "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5229 +label: "Rounded edges" +help: "" +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.18 ms | |
---|---|---|---|---|
Input props | [ "label" => "Infinite scrolling" "help" => "Automatically load more content when you reach the bottom of the page." "settingsKey" => "KBIN_GENERAL_INFINITE_SCROLL" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5285 +label: "Infinite scrolling" +help: "Automatically load more content when you reach the bottom of the page." +settingsKey: "KBIN_GENERAL_INFINITE_SCROLL" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "label" => "Sticky navbar" "help" => "The navbar will stick to the top of the page when you scroll down." "settingsKey" => "KBIN_GENERAL_FIXED_NAVBAR" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5344 +label: "Sticky navbar" +help: "The navbar will stick to the top of the page when you scroll down." +settingsKey: "KBIN_GENERAL_FIXED_NAVBAR" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show top bar" "settingsKey" => "KBIN_GENERAL_TOPBAR" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5400 +label: "Show top bar" +help: "" +settingsKey: "KBIN_GENERAL_TOPBAR" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Turbo mode (experimental)" "settingsKey" => "KBIN_GENERAL_TURBO" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5456 +label: "Turbo mode (experimental)" +help: "" +settingsKey: "KBIN_GENERAL_TURBO" +defaultValue: false +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 12.0 MiB | 0.29 ms | |
---|---|---|---|---|
Input props | [ "label" => "Mark new comments" "settingsKey" => "KBIN_MARK_NEW_COMMENTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5514 +label: "Mark new comments" +help: "" +settingsKey: "KBIN_MARK_NEW_COMMENTS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.21 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show "Support Us" block" "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5577 +label: "Show "Support Us" block" +help: "" +settingsKey: "KBIN_GENERAL_SUPPORT_US_BLOCK" +defaultValue: true +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed users" "settingsKey" => "KBIN_SUB_CHANNEL_USERS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5635 +label: "Show subscribed users" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_USERS" +defaultValue: false +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 12.0 MiB | 0.23 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed magazines" "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5691 +label: "Show subscribed magazines" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_MAGAZINES" +defaultValue: false +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 12.0 MiB | 0.21 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed domains" "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5747 +label: "Show subscribed domains" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_DOMAINS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 2.36 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5803 +label: "Auto media preview" +help: "Automatically expand media previews." +settingsKey: "KBIN_ENTRIES_SHOW_PREVIEW" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "label" => "Compact view" "settingsKey" => "KBIN_ENTRIES_COMPACT" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5859 +label: "Compact view" +help: "" +settingsKey: "KBIN_ENTRIES_COMPACT" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.18 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5915 +label: "Show users’ avatars" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_USERS_AVATARS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show magazines’ icons" "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5971 +label: "Show magazines’ icons" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show thumbnails" "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#6027 +label: "Show thumbnails" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS" +defaultValue: true +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.26 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#6083 +label: "Auto media preview" +help: "Automatically expand media previews." +settingsKey: "KBIN_POSTS_SHOW_PREVIEW" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#6139 +label: "Show users’ avatars" +help: "" +settingsKey: "KBIN_POSTS_SHOW_USERS_AVATARS" +defaultValue: true +reloadRequired: true } |
settings_row_enum | App\Twig\Components\SettingsRowEnumComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "label" => "Comment reply position" "help" => "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top." "settingsKey" => "KBIN_COMMENTS_REPLY_POSITION" "values" => [ [ "name" => "top" "value" => "TOP" ] [ "name" => "bottom" "value" => "BOTTOM" ] ] "defaultValue" => "TOP" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowEnumComponent {#6195 +label: "Comment reply position" +help: "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top." +settingsKey: "KBIN_COMMENTS_REPLY_POSITION" +values: [ [ "name" => "top" "value" => "TOP" ] [ "name" => "bottom" "value" => "BOTTOM" ] ] +defaultValue: "TOP" +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show Comment Avatars" "help" => "Display/hide user avatars when viewing comments on a single thread or post." "settingsKey" => "KBIN_COMMENTS_SHOW_USER_AVATAR" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#6253 +label: "Show Comment Avatars" +help: "Display/hide user avatars when viewing comments on a single thread or post." +settingsKey: "KBIN_COMMENTS_SHOW_USER_AVATAR" +defaultValue: true +reloadRequired: true } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#6326 +date: DateTimeImmutable @1687224837 {#267 : 2023-06-20 03:33:57.0 +02:00 } } |
related_magazines | App\Twig\Components\RelatedMagazinesComponent | 12.0 MiB | 1.81 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedMagazinesComponent {#6413 +limit: 4 +tag: null +magazine: null +type: "random" +title: "random_magazines" +refreshedRandom: false -repository: App\Repository\MagazineRepository {#1371 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
active_users | App\Twig\Components\ActiveUsersComponent | 12.0 MiB | 0.20 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\ActiveUsersComponent {#6478 +magazine: null -userRepository: App\Repository\UserRepository {#603 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
related_categories | App\Twig\Components\RelatedCategoriesComponent | 12.0 MiB | 1.29 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedCategoriesComponent {#6537 +limit: 4 +tag: null +magazine: null +type: "random" +title: "random_categories" +refreshedRandom: false -repository: App\Repository\CategoryRepository {#6538 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
related_posts | App\Twig\Components\RelatedPostsComponent | 12.0 MiB | 1.76 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedPostsComponent {#6607 +limit: 4 +tag: null +magazine: null +type: "random" +post: null +title: "random_posts" +refreshedRandom: false -repository: App\Repository\PostRepository {#1444 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#1507 …} } |
related_entries | App\Twig\Components\RelatedEntriesComponent | 12.0 MiB | 1.41 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedEntriesComponent {#6676 +limit: 4 +tag: null +magazine: null +type: "random" +entry: null +title: "random_entries" +refreshedRandom: false -repository: App\Repository\EntryRepository {#1762 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#1507 …} } |
support_us_block | App\Twig\Components\SupportUsBlock | 12.0 MiB | 0.22 ms | |
---|---|---|---|---|
Input props | [] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SupportUsBlock {#6745 +subject: ? App\Entity\Contracts\VotableInterface +url: ? string -twig: Twig\Environment {#1252 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -partnerBlockRepository: App\Repository\PartnerBlockRepository {#6746 …} } |
featured_magazines | App\Twig\Components\FeaturedMagazinesComponent | 12.0 MiB | 0.88 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\FeaturedMagazinesComponent {#6838 +magazine: null -twig: Twig\Environment {#1252 …} -repository: App\Repository\MagazineRepository {#1371 …} } |