Components
21
Twig Components
46
Render Count
44
ms
Render Time
12.0
MiB
Memory Usage
Components
Render calls
user_box | App\Twig\Components\UserBoxComponent | 12.0 MiB | 3.14 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } "stretchedLink" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserBoxComponent {#1384 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +stretchedLink: false } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.41 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } "width" => 100 "height" => 100 ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#2216 +width: 100 +height: 100 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +asLink: false } |
user_actions | App\Twig\Components\UserActionsComponent | 12.0 MiB | 0.65 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserActionsComponent {#2203 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } } |
entry | App\Twig\Components\EntryComponent | 12.0 MiB | 19.79 ms | |
---|---|---|---|---|
Input props | [ "entry" => Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } "dateAsUrl" => true ] |
|||
Attributes | [ "dateAsUrl" => true ] |
|||
Component | App\Twig\Components\EntryComponent {#2910 -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#2911 …} -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 {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 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 | 0.64 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#3126 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.37 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#3249 +date: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } "editedAt" => DateTimeImmutable @1692947232 {#1639 : 2023-08-25 09:07:12.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#3313 +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +editedAt: DateTimeImmutable @1692947232 {#1639 : 2023-08-25 09:07:12.0 +02:00 } } |
magazine_inline | App\Twig\Components\MagazineInlineComponent | 12.0 MiB | 2.96 ms | |
---|---|---|---|---|
Input props | [ "magazine" => Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\MagazineInlineComponent {#3378 +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 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 {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#3444 +subject: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 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.40 ms | |
---|---|---|---|---|
Input props | [ "subject" => Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#3509 +formDest: "entry" +subject: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 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 | 6.23 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646} ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } "showEntryTitle" => false "dateAsUrl" => true "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#3825 +comment: App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646} ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } +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.15 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#3884 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#3942 +date: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.09 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#3996 +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.22 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#4050 +width: 40 +height: 40 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.38 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646} ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#4140 +subject: App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646} ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.69 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646} ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#4197 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#1646 +user: App\Entity\User {#265 +avatar: Proxies\__CG__\App\Entity\Image {#246 …} +cover: Proxies\__CG__\App\Entity\Image {#247 …} +email: "brendan@mastodon.brendans-bits.com" +username: "@brendan@mastodon.brendans-bits.com" +roles: [] +followersCount: 0 +homepage: "front" +about: "A PhD candidate and tinkerer, interested in [#FreeBSD](https://mastodon.brendans-bits.com/tags/FreeBSD) [#rust](https://mastodon.brendans-bits.com/tags/rust) [#rustlang](https://mastodon.brendans-bits.com/tags/rustlang) [#CriticalRealism](https://mastodon.brendans-bits.com/tags/CriticalRealism)" +lastActive: DateTime @1692964519 {#275 : 2023-08-25 13:55:19.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: false +showProfileFollowings: true +markNewComments: false +notifyOnNewEntry: false +notifyOnNewEntryReply: true +notifyOnNewEntryCommentReply: true +notifyOnNewPost: false +notifyOnNewPostReply: true +notifyOnNewPostCommentReply: true +addMentionsEntries: false +addMentionsPosts: true +isBanned: false +isVerified: false +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#236 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#232 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …} +entries: Doctrine\ORM\PersistentCollection {#179 …} +entryVotes: Doctrine\ORM\PersistentCollection {#151 …} +entryComments: Doctrine\ORM\PersistentCollection {#124 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#94 …} +posts: Doctrine\ORM\PersistentCollection {#67 …} +postVotes: Doctrine\ORM\PersistentCollection {#82 …} +postComments: Doctrine\ORM\PersistentCollection {#1372 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1594 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1873 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1769 …} +follows: Doctrine\ORM\PersistentCollection {#1809 …} +followers: Doctrine\ORM\PersistentCollection {#2390 …} +blocks: Doctrine\ORM\PersistentCollection {#1860 …} +blockers: Doctrine\ORM\PersistentCollection {#1857 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1791 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2401 …} +reports: Doctrine\ORM\PersistentCollection {#2480 …} +favourites: Doctrine\ORM\PersistentCollection {#1373 …} +violations: Doctrine\ORM\PersistentCollection {#2413 …} +notifications: Doctrine\ORM\PersistentCollection {#1884 …} +awards: Doctrine\ORM\PersistentCollection {#1867 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1920 …} +categories: Doctrine\ORM\PersistentCollection {#1395 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1953 …} +apId: "brendan@mastodon.brendans-bits.com" +apProfileId: "https://mastodon.brendans-bits.com/users/brendan" +apPublicUrl: "https://mastodon.brendans-bits.com/@brendan" +apFollowersUrl: "https://mastodon.brendans-bits.com/users/brendan/followers" +apInboxUrl: "https://mastodon.brendans-bits.com/inbox" +apDomain: "mastodon.brendans-bits.com" +apPreferredUsername: "brendan" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692964518 {#269 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1587 +user: Proxies\__CG__\App\Entity\User {#2364 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3171 : 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 {#3174 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3176 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3178 …} +entries: Doctrine\ORM\PersistentCollection {#3180 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3182 …} +entryComments: Doctrine\ORM\PersistentCollection {#3184 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3186 …} +posts: Doctrine\ORM\PersistentCollection {#3188 …} +postVotes: Doctrine\ORM\PersistentCollection {#3190 …} +postComments: Doctrine\ORM\PersistentCollection {#3192 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3194 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3196 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3198 …} +follows: Doctrine\ORM\PersistentCollection {#3200 …} +followers: Doctrine\ORM\PersistentCollection {#3202 …} +blocks: Doctrine\ORM\PersistentCollection {#3204 …} +blockers: Doctrine\ORM\PersistentCollection {#3206 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3208 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3210 …} +reports: Doctrine\ORM\PersistentCollection {#3212 …} +favourites: Doctrine\ORM\PersistentCollection {#3214 …} +violations: Doctrine\ORM\PersistentCollection {#3216 …} +notifications: Doctrine\ORM\PersistentCollection {#3218 …} +awards: Doctrine\ORM\PersistentCollection {#3220 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3222 …} +categories: Doctrine\ORM\PersistentCollection {#3224 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3226 …} +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 {#3172 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3173 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 +icon: Proxies\__CG__\App\Entity\Image {#2966 …} +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 {#2963 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#2967 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#2969 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#2971 …} +entries: Doctrine\ORM\PersistentCollection {#2973 …} +posts: Doctrine\ORM\PersistentCollection {#2975 …} +subscriptions: Doctrine\ORM\PersistentCollection {#2977 …} +bans: Doctrine\ORM\PersistentCollection {#2983 …} +reports: Doctrine\ORM\PersistentCollection {#2991 …} +badges: Doctrine\ORM\PersistentCollection {#3004 …} +logs: Doctrine\ORM\PersistentCollection {#3014 …} +awards: Doctrine\ORM\PersistentCollection {#2996 …} +categories: Doctrine\ORM\PersistentCollection {#3020 …} -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 {#2964 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#2965 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2447 …} +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 ![](https://discuss.tchncs.de/pictrs/image/9d173f1d-8412-4129-8ae1-c549a7895107.png)\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 ![](https://discuss.tchncs.de/pictrs/image/450dc371-58d0-4eb0-8f3b-4e76bf676bf4.png)\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 ![](https://discuss.tchncs.de/pictrs/image/970e3840-fcbb-46dd-92fb-8903b89149a0.png)\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 {#1604 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2422 …} +votes: Doctrine\ORM\PersistentCollection {#2458 …} +reports: Doctrine\ORM\PersistentCollection {#2460 …} +favourites: Doctrine\ORM\PersistentCollection {#1726 …} +notifications: Doctrine\ORM\PersistentCollection {#1737 …} +badges: Doctrine\ORM\PersistentCollection {#1629 …} +children: [ App\Entity\EntryComment {#1646} ] -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 {#1639 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1687 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1528 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1590 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1552 …} +body: """ @nilclass@discuss.tchncs.de\n \n @WaterWaiver@aussie.zone\n \n From the stack exchange post: " 10 kΩ or less source resistance is recommended, otherwise the low pass filter effect of the capacitor with the source resistance becomes a major issue, requiring a longer sampling time for conversion and as a result limiting the maximum frequency."\n \n In other words: a higher source impedance (caused by large resistors) is only going to drastically affect the results when you need to take fast repeated measurements (e.g. an AC source) """ +lang: "en" +isAdult: false +favouriteCount: 2 +score: 0 +lastActive: DateTime @1692964486 {#1697 : 2023-08-25 13:54:46.0 +02:00 } +ip: null +tags: null +mentions: [ "@nilclass@discuss.tchncs.de" "@WaterWaiver@aussie.zone" ] +children: Doctrine\ORM\PersistentCollection {#1663 …} +nested: Doctrine\ORM\PersistentCollection {#1661 …} +votes: Doctrine\ORM\PersistentCollection {#1653 …} +reports: Doctrine\ORM\PersistentCollection {#1649 …} +favourites: Doctrine\ORM\PersistentCollection {#1548 …} +notifications: Doctrine\ORM\PersistentCollection {#1525 …} -id: 26790 -bodyTs: "'10':8 'ac':77 'affect':64 'becom':29 'capacitor':24 'caus':55 'convers':39 'drastic':63 'e.g':75 'effect':21 'exchang':6 'fast':72 'filter':20 'frequenc':47 'go':61 'higher':52 'imped':54 'issu':32 'kω':9 'larg':57 'less':11 'limit':44 'longer':35 'low':18 'major':31 'maximum':46 'measur':74 'need':69 'nilclass@discuss.tchncs.de':1 'otherwis':16 'pass':19 'post':7 'recommend':15 'repeat':73 'requir':33 'resist':13,28 'resistor':58 'result':43,66 'sampl':36 'sourc':12,27,53,78 'stack':5 'take':71 'time':37 'waterwaiver@aussie.zone':2 'word':50" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://mastodon.brendans-bits.com/users/brendan/statuses/110950120565907377" +editedAt: null +createdAt: DateTimeImmutable @1692964486 {#1709 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
settings_row_enum | App\Twig\Components\SettingsRowEnumComponent | 12.0 MiB | 0.21 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 {#4578 +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.20 ms | |
---|---|---|---|---|
Input props | [ "label" => "Dynamic lists" "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#4650 +label: "Dynamic lists" +help: "" +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Rounded edges" "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#4713 +label: "Rounded edges" +help: "" +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.13 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 {#4769 +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.12 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 {#4828 +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.47 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show top bar" "settingsKey" => "KBIN_GENERAL_TOPBAR" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#4884 +label: "Show top bar" +help: "" +settingsKey: "KBIN_GENERAL_TOPBAR" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.81 ms | |
---|---|---|---|---|
Input props | [ "label" => "Turbo mode (experimental)" "settingsKey" => "KBIN_GENERAL_TURBO" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#4940 +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.24 ms | |
---|---|---|---|---|
Input props | [ "label" => "Mark new comments" "settingsKey" => "KBIN_MARK_NEW_COMMENTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#4998 +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.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show "Support Us" block" "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5061 +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.16 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed users" "settingsKey" => "KBIN_SUB_CHANNEL_USERS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5119 +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.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed magazines" "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5175 +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.16 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed domains" "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5231 +label: "Show subscribed domains" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_DOMAINS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5287 +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.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Compact view" "settingsKey" => "KBIN_ENTRIES_COMPACT" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5343 +label: "Compact view" +help: "" +settingsKey: "KBIN_ENTRIES_COMPACT" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5399 +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.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show magazines’ icons" "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5455 +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.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show thumbnails" "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5511 +label: "Show thumbnails" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS" +defaultValue: true +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5567 +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.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5623 +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.15 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 {#5679 +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.12 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 {#5737 +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 @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#5810 +date: DateTimeImmutable @1692964515 {#268 : 2023-08-25 13:55:15.0 +02:00 } } |
related_magazines | App\Twig\Components\RelatedMagazinesComponent | 12.0 MiB | 1.86 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedMagazinesComponent {#5897 +limit: 4 +tag: null +magazine: null +type: "random" +title: "random_magazines" +refreshedRandom: false -repository: App\Repository\MagazineRepository {#2446 …} -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.33 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\ActiveUsersComponent {#5962 +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.37 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedCategoriesComponent {#6021 +limit: 4 +tag: null +magazine: null +type: "random" +title: "random_categories" +refreshedRandom: false -repository: App\Repository\CategoryRepository {#6022 …} -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.32 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedPostsComponent {#6091 +limit: 4 +tag: null +magazine: null +type: "random" +post: null +title: "random_posts" +refreshedRandom: false -repository: App\Repository\PostRepository {#1627 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#1536 …} } |
related_entries | App\Twig\Components\RelatedEntriesComponent | 12.0 MiB | 4.78 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedEntriesComponent {#6160 +limit: 4 +tag: null +magazine: null +type: "random" +entry: null +title: "random_entries" +refreshedRandom: false -repository: App\Repository\EntryRepository {#1782 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#1536 …} } |
support_us_block | App\Twig\Components\SupportUsBlock | 12.0 MiB | 0.33 ms | |
---|---|---|---|---|
Input props | [] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SupportUsBlock {#6229 +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 {#6230 …} } |
featured_magazines | App\Twig\Components\FeaturedMagazinesComponent | 12.0 MiB | 1.01 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\FeaturedMagazinesComponent {#6322 +magazine: null -twig: Twig\Environment {#1252 …} -repository: App\Repository\MagazineRepository {#2446 …} } |