Components
21
Twig Components
46
Render Count
59
ms
Render Time
12.0
MiB
Memory Usage
Components
Render calls
user_box | App\Twig\Components\UserBoxComponent | 12.0 MiB | 32.10 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } "stretchedLink" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserBoxComponent {#1405 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +stretchedLink: false } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 1.20 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } "width" => 100 "height" => 100 ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#2192 +width: 100 +height: 100 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +asLink: false } |
user_actions | App\Twig\Components\UserActionsComponent | 12.0 MiB | 0.74 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserActionsComponent {#2257 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } } |
entry | App\Twig\Components\EntryComponent | 12.0 MiB | 11.68 ms | |
---|---|---|---|---|
Input props | [ "entry" => Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } "dateAsUrl" => true ] |
|||
Attributes | [ "dateAsUrl" => true ] |
|||
Component | App\Twig\Components\EntryComponent {#3103 -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#3104 …} -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 {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 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.57 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#3319 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.36 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#3442 +date: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } "editedAt" => DateTimeImmutable @1692947232 {#1640 : 2023-08-25 09:07:12.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#3506 +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +editedAt: DateTimeImmutable @1692947232 {#1640 : 2023-08-25 09:07:12.0 +02:00 } } |
magazine_inline | App\Twig\Components\MagazineInlineComponent | 12.0 MiB | 0.26 ms | |
---|---|---|---|---|
Input props | [ "magazine" => Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\MagazineInlineComponent {#3571 +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 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.48 ms | |
---|---|---|---|---|
Input props | [ "subject" => Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#3637 +subject: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 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.14 ms | |
---|---|---|---|---|
Input props | [ "subject" => Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#3702 +formDest: "entry" +subject: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 …2} +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 5.20 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641} ] -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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } "showEntryTitle" => false "dateAsUrl" => true "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#4018 +comment: App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641} ] -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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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.12 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#4077 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1692964486 {#1606 : 2023-08-25 13:54:46.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#4135 +date: DateTimeImmutable @1692964486 {#1606 : 2023-08-25 13:54:46.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.08 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1692964486 {#1606 : 2023-08-25 13:54:46.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#4189 +createdAt: DateTimeImmutable @1692964486 {#1606 : 2023-08-25 13:54:46.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.24 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#4243 +width: 40 +height: 40 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.33 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641} ] -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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#4333 +subject: App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641} ] -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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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.57 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641} ] -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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 2023-08-25 13:54:46.0 +02:00 } +"title": 26790 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#4390 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#1641 +user: App\Entity\User {#261 +avatar: Proxies\__CG__\App\Entity\Image {#241 …} +cover: Proxies\__CG__\App\Entity\Image {#242 …} +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 {#269 : 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 {#231 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#227 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …} +entries: Doctrine\ORM\PersistentCollection {#174 …} +entryVotes: Doctrine\ORM\PersistentCollection {#146 …} +entryComments: Doctrine\ORM\PersistentCollection {#119 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#89 …} +posts: Doctrine\ORM\PersistentCollection {#62 …} +postVotes: Doctrine\ORM\PersistentCollection {#77 …} +postComments: Doctrine\ORM\PersistentCollection {#2405 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1607 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1768 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#2445 …} +follows: Doctrine\ORM\PersistentCollection {#1849 …} +followers: Doctrine\ORM\PersistentCollection {#1810 …} +blocks: Doctrine\ORM\PersistentCollection {#1794 …} +blockers: Doctrine\ORM\PersistentCollection {#2415 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#2421 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#2418 …} +reports: Doctrine\ORM\PersistentCollection {#2398 …} +favourites: Doctrine\ORM\PersistentCollection {#1918 …} +violations: Doctrine\ORM\PersistentCollection {#1834 …} +notifications: Doctrine\ORM\PersistentCollection {#1878 …} +awards: Doctrine\ORM\PersistentCollection {#1886 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1899 …} +categories: Doctrine\ORM\PersistentCollection {#1954 …} -id: 42498 -password: "$2y$13$u8YrKsIdbA570AU/1vf4DeI6Hwejm5.vfDHBPPQbzPW.H6L1H2NYO" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1978 …} +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 {#272 : 2023-08-25 13:55:18.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } +entry: Proxies\__CG__\App\Entity\Entry {#1576 +user: Proxies\__CG__\App\Entity\User {#2382 +avatar: null +cover: null +email: "nilclass@discuss.tchncs.de" +username: "@nilclass@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1721268563 {#3364 : 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 {#3367 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3369 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3371 …} +entries: Doctrine\ORM\PersistentCollection {#3373 …} +entryVotes: Doctrine\ORM\PersistentCollection {#3375 …} +entryComments: Doctrine\ORM\PersistentCollection {#3377 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3379 …} +posts: Doctrine\ORM\PersistentCollection {#3381 …} +postVotes: Doctrine\ORM\PersistentCollection {#3383 …} +postComments: Doctrine\ORM\PersistentCollection {#3385 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3387 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3389 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3391 …} +follows: Doctrine\ORM\PersistentCollection {#3393 …} +followers: Doctrine\ORM\PersistentCollection {#3395 …} +blocks: Doctrine\ORM\PersistentCollection {#3397 …} +blockers: Doctrine\ORM\PersistentCollection {#3399 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#3401 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#3403 …} +reports: Doctrine\ORM\PersistentCollection {#3405 …} +favourites: Doctrine\ORM\PersistentCollection {#3407 …} +violations: Doctrine\ORM\PersistentCollection {#3409 …} +notifications: Doctrine\ORM\PersistentCollection {#3411 …} +awards: Doctrine\ORM\PersistentCollection {#3413 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#3415 …} +categories: Doctrine\ORM\PersistentCollection {#3417 …} -id: 6046 -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3419 …} +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 {#3365 : 2024-07-10 19:01:52.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687291240 {#3366 : 2023-06-20 22:00:40.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 +icon: Proxies\__CG__\App\Entity\Image {#3159 …} +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 {#3156 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#3160 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#3162 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#3164 …} +entries: Doctrine\ORM\PersistentCollection {#3166 …} +posts: Doctrine\ORM\PersistentCollection {#3168 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3170 …} +bans: Doctrine\ORM\PersistentCollection {#3176 …} +reports: Doctrine\ORM\PersistentCollection {#3184 …} +badges: Doctrine\ORM\PersistentCollection {#3197 …} +logs: Doctrine\ORM\PersistentCollection {#3207 …} +awards: Doctrine\ORM\PersistentCollection {#3189 …} +categories: Doctrine\ORM\PersistentCollection {#3213 …} -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 {#3157 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#3158 : 2023-06-19 05:13:29.0 +02:00 } +__isInitialized__: true …2 } +image: null +domain: Proxies\__CG__\App\Entity\Domain {#2461 …} +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 {#1701 : 2023-09-15 14:30:42.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#2456 …} +votes: Doctrine\ORM\PersistentCollection {#2453 …} +reports: Doctrine\ORM\PersistentCollection {#2454 …} +favourites: Doctrine\ORM\PersistentCollection {#1737 …} +notifications: Doctrine\ORM\PersistentCollection {#1735 …} +badges: Doctrine\ORM\PersistentCollection {#1618 …} +children: [ App\Entity\EntryComment {#1641} ] -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 {#1640 : 2023-08-25 09:07:12.0 +02:00 } +createdAt: DateTimeImmutable @1692947137 {#1691 : 2023-08-25 09:05:37.0 +02:00 } +__isInitialized__: true …2 } +magazine: Proxies\__CG__\App\Entity\Magazine {#1567 …2} +image: null +parent: Proxies\__CG__\App\Entity\EntryComment {#1589 …} +root: Proxies\__CG__\App\Entity\EntryComment {#1593 …} +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 {#1696 : 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 {#1592 …} +nested: Doctrine\ORM\PersistentCollection {#1552 …} +votes: Doctrine\ORM\PersistentCollection {#1663 …} +reports: Doctrine\ORM\PersistentCollection {#1661 …} +favourites: Doctrine\ORM\PersistentCollection {#1562 …} +notifications: Doctrine\ORM\PersistentCollection {#1548 …} -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 {#1606 : 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 {#4771 +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.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Dynamic lists" "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#4843 +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 {#4906 +label: "Rounded edges" +help: "" +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.15 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 {#4962 +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 {#5021 +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.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show top bar" "settingsKey" => "KBIN_GENERAL_TOPBAR" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5077 +label: "Show top bar" +help: "" +settingsKey: "KBIN_GENERAL_TOPBAR" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "label" => "Turbo mode (experimental)" "settingsKey" => "KBIN_GENERAL_TURBO" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5133 +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.22 ms | |
---|---|---|---|---|
Input props | [ "label" => "Mark new comments" "settingsKey" => "KBIN_MARK_NEW_COMMENTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5191 +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.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show "Support Us" block" "settingsKey" => "KBIN_GENERAL_SUPPORT_US_BLOCK" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5254 +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.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed users" "settingsKey" => "KBIN_SUB_CHANNEL_USERS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5312 +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.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed magazines" "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5368 +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.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed domains" "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#5424 +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 {#5480 +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.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Compact view" "settingsKey" => "KBIN_ENTRIES_COMPACT" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5536 +label: "Compact view" +help: "" +settingsKey: "KBIN_ENTRIES_COMPACT" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.11 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5592 +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 {#5648 +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 {#5704 +label: "Show thumbnails" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS" +defaultValue: true +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.11 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5760 +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.11 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5816 +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 {#5872 +label: "Comment reply position" +help: "Display the comment reply form either at the top or bottom of the page. When 'infinite scroll' is enabled the position will always appear at the top." +settingsKey: "KBIN_COMMENTS_REPLY_POSITION" +values: [ [ "name" => "top" "value" => "TOP" ] [ "name" => "bottom" "value" => "BOTTOM" ] ] +defaultValue: "TOP" +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show Comment Avatars" "help" => "Display/hide user avatars when viewing comments on a single thread or post." "settingsKey" => "KBIN_COMMENTS_SHOW_USER_AVATAR" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#5930 +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 {#275 : 2023-08-25 13:55:15.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#6003 +date: DateTimeImmutable @1692964515 {#275 : 2023-08-25 13:55:15.0 +02:00 } } |
related_magazines | App\Twig\Components\RelatedMagazinesComponent | 12.0 MiB | 1.90 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedMagazinesComponent {#6090 +limit: 4 +tag: null +magazine: null +type: "random" +title: "random_magazines" +refreshedRandom: false -repository: App\Repository\MagazineRepository {#2439 …} -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.30 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\ActiveUsersComponent {#6155 +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.26 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedCategoriesComponent {#6214 +limit: 4 +tag: null +magazine: null +type: "random" +title: "random_categories" +refreshedRandom: false -repository: App\Repository\CategoryRepository {#6215 …} -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.35 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedPostsComponent {#6284 +limit: 4 +tag: null +magazine: null +type: "random" +post: null +title: "random_posts" +refreshedRandom: false -repository: App\Repository\PostRepository {#1635 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#1631 …} } |
related_entries | App\Twig\Components\RelatedEntriesComponent | 12.0 MiB | 1.33 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedEntriesComponent {#6353 +limit: 4 +tag: null +magazine: null +type: "random" +entry: null +title: "random_entries" +refreshedRandom: false -repository: App\Repository\EntryRepository {#1780 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#1631 …} } |
support_us_block | App\Twig\Components\SupportUsBlock | 12.0 MiB | 0.24 ms | |
---|---|---|---|---|
Input props | [] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SupportUsBlock {#6422 +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 {#6423 …} } |
featured_magazines | App\Twig\Components\FeaturedMagazinesComponent | 12.0 MiB | 0.90 ms | |
---|---|---|---|---|
Input props | [ "magazine" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\FeaturedMagazinesComponent {#6515 +magazine: null -twig: Twig\Environment {#1252 …} -repository: App\Repository\MagazineRepository {#2439 …} } |