GET https://kbin.spritesserver.nl/u/@Stoney@aussie.zone/commented

Components

21 Twig Components
45 Render Count
37 ms Render Time
12.0 MiB Memory Usage

Components

Name Metadata Render Count Render Time
settings_row_switch
"App\Twig\Components\SettingsRowSwitchComponent"
components/_settings_row_switch.html.twig
15 1.93ms
user_settings_row_switch
"App\Twig\Components\UserSettingsRowSwitchComponent"
components/_user_settings_row_switch.html.twig
4 0.65ms
date
"App\Twig\Components\DateComponent"
components/date.html.twig
3 0.64ms
user_inline
"App\Twig\Components\UserInlineComponent"
components/user_inline.html.twig
2 0.71ms
date_edited
"App\Twig\Components\DateEditedComponent"
components/date_edited.html.twig
2 0.25ms
vote
"App\Twig\Components\VoteComponent"
components/vote.html.twig
2 0.76ms
boost
"App\Twig\Components\BoostComponent"
components/boost.html.twig
2 1.93ms
settings_row_enum
"App\Twig\Components\SettingsRowEnumComponent"
components/_settings_row_enum.html.twig
2 0.36ms
user_box
"App\Twig\Components\UserBoxComponent"
components/user_box.html.twig
1 10.71ms
user_actions
"App\Twig\Components\UserActionsComponent"
components/user_actions.html.twig
1 10.13ms
entry
"App\Twig\Components\EntryComponent"
components/_cached.html.twig
1 10.08ms
magazine_inline
"App\Twig\Components\MagazineInlineComponent"
components/magazine_inline.html.twig
1 0.17ms
entry_comment
"App\Twig\Components\EntryCommentComponent"
components/entry_comment.html.twig
1 5.43ms
user_avatar
"App\Twig\Components\UserAvatarComponent"
components/user_avatar.html.twig
1 0.23ms
related_magazines
"App\Twig\Components\RelatedMagazinesComponent"
components/_cached.html.twig
1 2.27ms
active_users
"App\Twig\Components\ActiveUsersComponent"
components/_cached.html.twig
1 0.27ms
related_categories
"App\Twig\Components\RelatedCategoriesComponent"
components/_cached.html.twig
1 1.38ms
related_posts
"App\Twig\Components\RelatedPostsComponent"
components/_cached.html.twig
1 1.58ms
related_entries
"App\Twig\Components\RelatedEntriesComponent"
components/_cached.html.twig
1 1.42ms
support_us_block
"App\Twig\Components\SupportUsBlock"
components/_cached.html.twig
1 0.19ms
featured_magazines
"App\Twig\Components\FeaturedMagazinesComponent"
components/_cached.html.twig
1 0.85ms

Render calls

user_box App\Twig\Components\UserBoxComponent 12.0 MiB 10.71 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
  "stretchedLink" => false
]
Attributes
[]
Component
App\Twig\Components\UserBoxComponent {#2379
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
  +stretchedLink: false
}
user_actions App\Twig\Components\UserActionsComponent 12.0 MiB 10.13 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
]
Attributes
[]
Component
App\Twig\Components\UserActionsComponent {#2117
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
}
entry App\Twig\Components\EntryComponent 12.0 MiB 10.08 ms
Input props
[
  "entry" => Proxies\__CG__\App\Entity\Entry {#1592
    +user: Proxies\__CG__\App\Entity\User {#2458
      +avatar: null
      +cover: null
      +email: "nilclass@discuss.tchncs.de"
      +username: "@nilclass@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1721268563 {#3057
        date: 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 {#3060 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
      +entries: Doctrine\ORM\PersistentCollection {#3066 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
      +posts: Doctrine\ORM\PersistentCollection {#3074 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
      +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
      +follows: Doctrine\ORM\PersistentCollection {#3086 …}
      +followers: Doctrine\ORM\PersistentCollection {#3088 …}
      +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
      +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
      +reports: Doctrine\ORM\PersistentCollection {#3098 …}
      +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
      +violations: Doctrine\ORM\PersistentCollection {#3102 …}
      +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
      +awards: Doctrine\ORM\PersistentCollection {#3106 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
      +categories: Doctrine\ORM\PersistentCollection {#3110 …}
      -id: 6046
      -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
      +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 {#3058
        date: 2024-07-10 19:01:52.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687291240 {#3059
        date: 2023-06-20 22:00:40.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
      +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
      +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 {#2826
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
      +entries: Doctrine\ORM\PersistentCollection {#2850 …}
      +posts: Doctrine\ORM\PersistentCollection {#2853 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
      +bans: Doctrine\ORM\PersistentCollection {#2861 …}
      +reports: Doctrine\ORM\PersistentCollection {#2869 …}
      +badges: Doctrine\ORM\PersistentCollection {#2882 …}
      +logs: Doctrine\ORM\PersistentCollection {#2892 …}
      +awards: Doctrine\ORM\PersistentCollection {#2874 …}
      +categories: Doctrine\ORM\PersistentCollection {#2898 …}
      -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 {#2827
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#2828
        date: 2023-06-19 05:13:29.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
    +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 {#1526
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1727 …}
    +votes: Doctrine\ORM\PersistentCollection {#1733 …}
    +reports: Doctrine\ORM\PersistentCollection {#1719 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
    +badges: Doctrine\ORM\PersistentCollection {#1621 …}
    +children: [
      App\Entity\EntryComment {#1697
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Stoney@aussie.zone"
          +username: "@Stoney@aussie.zone"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1694781047 {#275
            date: 2023-09-15 14:30:47.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 {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 46201
          -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Stoney@aussie.zone"
          +apProfileId: "https://aussie.zone/u/Stoney"
          +apPublicUrl: "https://aussie.zone/u/Stoney"
          +apFollowersUrl: null
          +apInboxUrl: "https://aussie.zone/inbox"
          +apDomain: "aussie.zone"
          +apPreferredUsername: "Stoney"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1694781047 {#269
            date: 2023-09-15 14:30:47.0 +02:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1694781046 {#268
            date: 2023-09-15 14:30:46.0 +02:00
          }
        }
        +entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
        +image: null
        +parent: null
        +root: null
        +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1694781042 {#1439
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@nilclass@discuss.tchncs.de"
        ]
        +children: Doctrine\ORM\PersistentCollection {#1580 …}
        +nested: Doctrine\ORM\PersistentCollection {#1583 …}
        +votes: Doctrine\ORM\PersistentCollection {#1582 …}
        +reports: Doctrine\ORM\PersistentCollection {#1589 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
        -id: 29231
        -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://aussie.zone/comment/2659403"
        +editedAt: null
        +createdAt: DateTimeImmutable @1694781042 {#1435
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +"title": 29231
      }
    ]
    -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 {#1693
      date: 2023-08-25 09:07:12.0 +02:00
    }
    +createdAt: DateTimeImmutable @1692947137 {#1550
      date: 2023-08-25 09:05:37.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
  "dateAsUrl" => true
]
Attributes
[
  "dateAsUrl" => true
]
Component
App\Twig\Components\EntryComponent {#2773
  -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …}
  -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#2774 …}
  -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 {#1592
    +user: Proxies\__CG__\App\Entity\User {#2458
      +avatar: null
      +cover: null
      +email: "nilclass@discuss.tchncs.de"
      +username: "@nilclass@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1721268563 {#3057
        date: 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 {#3060 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
      +entries: Doctrine\ORM\PersistentCollection {#3066 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
      +posts: Doctrine\ORM\PersistentCollection {#3074 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
      +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
      +follows: Doctrine\ORM\PersistentCollection {#3086 …}
      +followers: Doctrine\ORM\PersistentCollection {#3088 …}
      +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
      +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
      +reports: Doctrine\ORM\PersistentCollection {#3098 …}
      +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
      +violations: Doctrine\ORM\PersistentCollection {#3102 …}
      +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
      +awards: Doctrine\ORM\PersistentCollection {#3106 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
      +categories: Doctrine\ORM\PersistentCollection {#3110 …}
      -id: 6046
      -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
      +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 {#3058
        date: 2024-07-10 19:01:52.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687291240 {#3059
        date: 2023-06-20 22:00:40.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
      +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
      +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 {#2826
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
      +entries: Doctrine\ORM\PersistentCollection {#2850 …}
      +posts: Doctrine\ORM\PersistentCollection {#2853 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
      +bans: Doctrine\ORM\PersistentCollection {#2861 …}
      +reports: Doctrine\ORM\PersistentCollection {#2869 …}
      +badges: Doctrine\ORM\PersistentCollection {#2882 …}
      +logs: Doctrine\ORM\PersistentCollection {#2892 …}
      +awards: Doctrine\ORM\PersistentCollection {#2874 …}
      +categories: Doctrine\ORM\PersistentCollection {#2898 …}
      -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 {#2827
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#2828
        date: 2023-06-19 05:13:29.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
    +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 {#1526
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1727 …}
    +votes: Doctrine\ORM\PersistentCollection {#1733 …}
    +reports: Doctrine\ORM\PersistentCollection {#1719 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
    +badges: Doctrine\ORM\PersistentCollection {#1621 …}
    +children: [
      App\Entity\EntryComment {#1697
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Stoney@aussie.zone"
          +username: "@Stoney@aussie.zone"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1694781047 {#275
            date: 2023-09-15 14:30:47.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 {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 46201
          -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Stoney@aussie.zone"
          +apProfileId: "https://aussie.zone/u/Stoney"
          +apPublicUrl: "https://aussie.zone/u/Stoney"
          +apFollowersUrl: null
          +apInboxUrl: "https://aussie.zone/inbox"
          +apDomain: "aussie.zone"
          +apPreferredUsername: "Stoney"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1694781047 {#269
            date: 2023-09-15 14:30:47.0 +02:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1694781046 {#268
            date: 2023-09-15 14:30:46.0 +02:00
          }
        }
        +entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
        +image: null
        +parent: null
        +root: null
        +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1694781042 {#1439
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@nilclass@discuss.tchncs.de"
        ]
        +children: Doctrine\ORM\PersistentCollection {#1580 …}
        +nested: Doctrine\ORM\PersistentCollection {#1583 …}
        +votes: Doctrine\ORM\PersistentCollection {#1582 …}
        +reports: Doctrine\ORM\PersistentCollection {#1589 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
        -id: 29231
        -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://aussie.zone/comment/2659403"
        +editedAt: null
        +createdAt: DateTimeImmutable @1694781042 {#1435
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +"title": 29231
      }
    ]
    -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 {#1693
      date: 2023-08-25 09:07:12.0 +02:00
    }
    +createdAt: DateTimeImmutable @1692947137 {#1550
      date: 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.58 ms
Input props
[
  "user" => Proxies\__CG__\App\Entity\User {#2458
    +avatar: null
    +cover: null
    +email: "nilclass@discuss.tchncs.de"
    +username: "@nilclass@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1721268563 {#3057
      date: 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 {#3060 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
    +entries: Doctrine\ORM\PersistentCollection {#3066 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
    +posts: Doctrine\ORM\PersistentCollection {#3074 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
    +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
    +follows: Doctrine\ORM\PersistentCollection {#3086 …}
    +followers: Doctrine\ORM\PersistentCollection {#3088 …}
    +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
    +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
    +reports: Doctrine\ORM\PersistentCollection {#3098 …}
    +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
    +violations: Doctrine\ORM\PersistentCollection {#3102 …}
    +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
    +awards: Doctrine\ORM\PersistentCollection {#3106 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
    +categories: Doctrine\ORM\PersistentCollection {#3110 …}
    -id: 6046
    -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
    +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 {#3058
      date: 2024-07-10 19:01:52.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687291240 {#3059
      date: 2023-06-20 22:00:40.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#3012
  +user: Proxies\__CG__\App\Entity\User {#2458
    +avatar: null
    +cover: null
    +email: "nilclass@discuss.tchncs.de"
    +username: "@nilclass@discuss.tchncs.de"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1721268563 {#3057
      date: 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 {#3060 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
    +entries: Doctrine\ORM\PersistentCollection {#3066 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
    +posts: Doctrine\ORM\PersistentCollection {#3074 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
    +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
    +follows: Doctrine\ORM\PersistentCollection {#3086 …}
    +followers: Doctrine\ORM\PersistentCollection {#3088 …}
    +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
    +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
    +reports: Doctrine\ORM\PersistentCollection {#3098 …}
    +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
    +violations: Doctrine\ORM\PersistentCollection {#3102 …}
    +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
    +awards: Doctrine\ORM\PersistentCollection {#3106 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
    +categories: Doctrine\ORM\PersistentCollection {#3110 …}
    -id: 6046
    -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
    +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 {#3058
      date: 2024-07-10 19:01:52.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687291240 {#3059
      date: 2023-06-20 22:00:40.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.38 ms
Input props
[
  "date" => DateTimeImmutable @1692947137 {#1550
    date: 2023-08-25 09:05:37.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#3135
  +date: DateTimeImmutable @1692947137 {#1550
    date: 2023-08-25 09:05:37.0 +02:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.15 ms
Input props
[
  "createdAt" => DateTimeImmutable @1692947137 {#1550
    date: 2023-08-25 09:05:37.0 +02:00
  }
  "editedAt" => DateTimeImmutable @1692947232 {#1693
    date: 2023-08-25 09:07:12.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#3199
  +createdAt: DateTimeImmutable @1692947137 {#1550
    date: 2023-08-25 09:05:37.0 +02:00
  }
  +editedAt: DateTimeImmutable @1692947232 {#1693
    date: 2023-08-25 09:07:12.0 +02:00
  }
}
magazine_inline App\Twig\Components\MagazineInlineComponent 12.0 MiB 0.17 ms
Input props
[
  "magazine" => Proxies\__CG__\App\Entity\Magazine {#1579
    +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
    +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 {#2826
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
    +entries: Doctrine\ORM\PersistentCollection {#2850 …}
    +posts: Doctrine\ORM\PersistentCollection {#2853 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
    +bans: Doctrine\ORM\PersistentCollection {#2861 …}
    +reports: Doctrine\ORM\PersistentCollection {#2869 …}
    +badges: Doctrine\ORM\PersistentCollection {#2882 …}
    +logs: Doctrine\ORM\PersistentCollection {#2892 …}
    +awards: Doctrine\ORM\PersistentCollection {#2874 …}
    +categories: Doctrine\ORM\PersistentCollection {#2898 …}
    -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 {#2827
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#2828
      date: 2023-06-19 05:13:29.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\MagazineInlineComponent {#3264
  +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
    +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
    +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 {#2826
      date: 2024-10-20 10:40:08.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
    +entries: Doctrine\ORM\PersistentCollection {#2850 …}
    +posts: Doctrine\ORM\PersistentCollection {#2853 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
    +bans: Doctrine\ORM\PersistentCollection {#2861 …}
    +reports: Doctrine\ORM\PersistentCollection {#2869 …}
    +badges: Doctrine\ORM\PersistentCollection {#2882 …}
    +logs: Doctrine\ORM\PersistentCollection {#2892 …}
    +awards: Doctrine\ORM\PersistentCollection {#2874 …}
    +categories: Doctrine\ORM\PersistentCollection {#2898 …}
    -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 {#2827
      date: 2024-09-25 09:01:54.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1687144409 {#2828
      date: 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.41 ms
Input props
[
  "subject" => Proxies\__CG__\App\Entity\Entry {#1592
    +user: Proxies\__CG__\App\Entity\User {#2458
      +avatar: null
      +cover: null
      +email: "nilclass@discuss.tchncs.de"
      +username: "@nilclass@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1721268563 {#3057
        date: 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 {#3060 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
      +entries: Doctrine\ORM\PersistentCollection {#3066 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
      +posts: Doctrine\ORM\PersistentCollection {#3074 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
      +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
      +follows: Doctrine\ORM\PersistentCollection {#3086 …}
      +followers: Doctrine\ORM\PersistentCollection {#3088 …}
      +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
      +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
      +reports: Doctrine\ORM\PersistentCollection {#3098 …}
      +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
      +violations: Doctrine\ORM\PersistentCollection {#3102 …}
      +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
      +awards: Doctrine\ORM\PersistentCollection {#3106 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
      +categories: Doctrine\ORM\PersistentCollection {#3110 …}
      -id: 6046
      -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
      +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 {#3058
        date: 2024-07-10 19:01:52.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687291240 {#3059
        date: 2023-06-20 22:00:40.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
      +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
      +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 {#2826
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
      +entries: Doctrine\ORM\PersistentCollection {#2850 …}
      +posts: Doctrine\ORM\PersistentCollection {#2853 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
      +bans: Doctrine\ORM\PersistentCollection {#2861 …}
      +reports: Doctrine\ORM\PersistentCollection {#2869 …}
      +badges: Doctrine\ORM\PersistentCollection {#2882 …}
      +logs: Doctrine\ORM\PersistentCollection {#2892 …}
      +awards: Doctrine\ORM\PersistentCollection {#2874 …}
      +categories: Doctrine\ORM\PersistentCollection {#2898 …}
      -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 {#2827
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#2828
        date: 2023-06-19 05:13:29.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
    +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 {#1526
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1727 …}
    +votes: Doctrine\ORM\PersistentCollection {#1733 …}
    +reports: Doctrine\ORM\PersistentCollection {#1719 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
    +badges: Doctrine\ORM\PersistentCollection {#1621 …}
    +children: [
      App\Entity\EntryComment {#1697
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Stoney@aussie.zone"
          +username: "@Stoney@aussie.zone"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1694781047 {#275
            date: 2023-09-15 14:30:47.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 {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 46201
          -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Stoney@aussie.zone"
          +apProfileId: "https://aussie.zone/u/Stoney"
          +apPublicUrl: "https://aussie.zone/u/Stoney"
          +apFollowersUrl: null
          +apInboxUrl: "https://aussie.zone/inbox"
          +apDomain: "aussie.zone"
          +apPreferredUsername: "Stoney"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1694781047 {#269
            date: 2023-09-15 14:30:47.0 +02:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1694781046 {#268
            date: 2023-09-15 14:30:46.0 +02:00
          }
        }
        +entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
        +image: null
        +parent: null
        +root: null
        +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1694781042 {#1439
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@nilclass@discuss.tchncs.de"
        ]
        +children: Doctrine\ORM\PersistentCollection {#1580 …}
        +nested: Doctrine\ORM\PersistentCollection {#1583 …}
        +votes: Doctrine\ORM\PersistentCollection {#1582 …}
        +reports: Doctrine\ORM\PersistentCollection {#1589 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
        -id: 29231
        -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://aussie.zone/comment/2659403"
        +editedAt: null
        +createdAt: DateTimeImmutable @1694781042 {#1435
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +"title": 29231
      }
    ]
    -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 {#1693
      date: 2023-08-25 09:07:12.0 +02:00
    }
    +createdAt: DateTimeImmutable @1692947137 {#1550
      date: 2023-08-25 09:05:37.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#3330
  +subject: Proxies\__CG__\App\Entity\Entry {#1592
    +user: Proxies\__CG__\App\Entity\User {#2458
      +avatar: null
      +cover: null
      +email: "nilclass@discuss.tchncs.de"
      +username: "@nilclass@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1721268563 {#3057
        date: 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 {#3060 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
      +entries: Doctrine\ORM\PersistentCollection {#3066 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
      +posts: Doctrine\ORM\PersistentCollection {#3074 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
      +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
      +follows: Doctrine\ORM\PersistentCollection {#3086 …}
      +followers: Doctrine\ORM\PersistentCollection {#3088 …}
      +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
      +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
      +reports: Doctrine\ORM\PersistentCollection {#3098 …}
      +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
      +violations: Doctrine\ORM\PersistentCollection {#3102 …}
      +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
      +awards: Doctrine\ORM\PersistentCollection {#3106 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
      +categories: Doctrine\ORM\PersistentCollection {#3110 …}
      -id: 6046
      -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
      +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 {#3058
        date: 2024-07-10 19:01:52.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687291240 {#3059
        date: 2023-06-20 22:00:40.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
      +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
      +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 {#2826
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
      +entries: Doctrine\ORM\PersistentCollection {#2850 …}
      +posts: Doctrine\ORM\PersistentCollection {#2853 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
      +bans: Doctrine\ORM\PersistentCollection {#2861 …}
      +reports: Doctrine\ORM\PersistentCollection {#2869 …}
      +badges: Doctrine\ORM\PersistentCollection {#2882 …}
      +logs: Doctrine\ORM\PersistentCollection {#2892 …}
      +awards: Doctrine\ORM\PersistentCollection {#2874 …}
      +categories: Doctrine\ORM\PersistentCollection {#2898 …}
      -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 {#2827
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#2828
        date: 2023-06-19 05:13:29.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
    +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 {#1526
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1727 …}
    +votes: Doctrine\ORM\PersistentCollection {#1733 …}
    +reports: Doctrine\ORM\PersistentCollection {#1719 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
    +badges: Doctrine\ORM\PersistentCollection {#1621 …}
    +children: [
      App\Entity\EntryComment {#1697
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Stoney@aussie.zone"
          +username: "@Stoney@aussie.zone"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1694781047 {#275
            date: 2023-09-15 14:30:47.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 {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 46201
          -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Stoney@aussie.zone"
          +apProfileId: "https://aussie.zone/u/Stoney"
          +apPublicUrl: "https://aussie.zone/u/Stoney"
          +apFollowersUrl: null
          +apInboxUrl: "https://aussie.zone/inbox"
          +apDomain: "aussie.zone"
          +apPreferredUsername: "Stoney"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1694781047 {#269
            date: 2023-09-15 14:30:47.0 +02:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1694781046 {#268
            date: 2023-09-15 14:30:46.0 +02:00
          }
        }
        +entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
        +image: null
        +parent: null
        +root: null
        +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1694781042 {#1439
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@nilclass@discuss.tchncs.de"
        ]
        +children: Doctrine\ORM\PersistentCollection {#1580 …}
        +nested: Doctrine\ORM\PersistentCollection {#1583 …}
        +votes: Doctrine\ORM\PersistentCollection {#1582 …}
        +reports: Doctrine\ORM\PersistentCollection {#1589 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
        -id: 29231
        -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://aussie.zone/comment/2659403"
        +editedAt: null
        +createdAt: DateTimeImmutable @1694781042 {#1435
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +"title": 29231
      }
    ]
    -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 {#1693
      date: 2023-08-25 09:07:12.0 +02:00
    }
    +createdAt: DateTimeImmutable @1692947137 {#1550
      date: 2023-08-25 09:05:37.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
  +formDest: "entry"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 1.20 ms
Input props
[
  "subject" => Proxies\__CG__\App\Entity\Entry {#1592
    +user: Proxies\__CG__\App\Entity\User {#2458
      +avatar: null
      +cover: null
      +email: "nilclass@discuss.tchncs.de"
      +username: "@nilclass@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1721268563 {#3057
        date: 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 {#3060 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
      +entries: Doctrine\ORM\PersistentCollection {#3066 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
      +posts: Doctrine\ORM\PersistentCollection {#3074 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
      +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
      +follows: Doctrine\ORM\PersistentCollection {#3086 …}
      +followers: Doctrine\ORM\PersistentCollection {#3088 …}
      +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
      +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
      +reports: Doctrine\ORM\PersistentCollection {#3098 …}
      +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
      +violations: Doctrine\ORM\PersistentCollection {#3102 …}
      +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
      +awards: Doctrine\ORM\PersistentCollection {#3106 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
      +categories: Doctrine\ORM\PersistentCollection {#3110 …}
      -id: 6046
      -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
      +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 {#3058
        date: 2024-07-10 19:01:52.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687291240 {#3059
        date: 2023-06-20 22:00:40.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
      +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
      +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 {#2826
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
      +entries: Doctrine\ORM\PersistentCollection {#2850 …}
      +posts: Doctrine\ORM\PersistentCollection {#2853 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
      +bans: Doctrine\ORM\PersistentCollection {#2861 …}
      +reports: Doctrine\ORM\PersistentCollection {#2869 …}
      +badges: Doctrine\ORM\PersistentCollection {#2882 …}
      +logs: Doctrine\ORM\PersistentCollection {#2892 …}
      +awards: Doctrine\ORM\PersistentCollection {#2874 …}
      +categories: Doctrine\ORM\PersistentCollection {#2898 …}
      -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 {#2827
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#2828
        date: 2023-06-19 05:13:29.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
    +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 {#1526
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1727 …}
    +votes: Doctrine\ORM\PersistentCollection {#1733 …}
    +reports: Doctrine\ORM\PersistentCollection {#1719 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
    +badges: Doctrine\ORM\PersistentCollection {#1621 …}
    +children: [
      App\Entity\EntryComment {#1697
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Stoney@aussie.zone"
          +username: "@Stoney@aussie.zone"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1694781047 {#275
            date: 2023-09-15 14:30:47.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 {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 46201
          -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Stoney@aussie.zone"
          +apProfileId: "https://aussie.zone/u/Stoney"
          +apPublicUrl: "https://aussie.zone/u/Stoney"
          +apFollowersUrl: null
          +apInboxUrl: "https://aussie.zone/inbox"
          +apDomain: "aussie.zone"
          +apPreferredUsername: "Stoney"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1694781047 {#269
            date: 2023-09-15 14:30:47.0 +02:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1694781046 {#268
            date: 2023-09-15 14:30:46.0 +02:00
          }
        }
        +entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
        +image: null
        +parent: null
        +root: null
        +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1694781042 {#1439
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@nilclass@discuss.tchncs.de"
        ]
        +children: Doctrine\ORM\PersistentCollection {#1580 …}
        +nested: Doctrine\ORM\PersistentCollection {#1583 …}
        +votes: Doctrine\ORM\PersistentCollection {#1582 …}
        +reports: Doctrine\ORM\PersistentCollection {#1589 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
        -id: 29231
        -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://aussie.zone/comment/2659403"
        +editedAt: null
        +createdAt: DateTimeImmutable @1694781042 {#1435
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +"title": 29231
      }
    ]
    -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 {#1693
      date: 2023-08-25 09:07:12.0 +02:00
    }
    +createdAt: DateTimeImmutable @1692947137 {#1550
      date: 2023-08-25 09:05:37.0 +02:00
    }
    +__isInitialized__: true
     …2
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#3395
  +formDest: "entry"
  +subject: Proxies\__CG__\App\Entity\Entry {#1592
    +user: Proxies\__CG__\App\Entity\User {#2458
      +avatar: null
      +cover: null
      +email: "nilclass@discuss.tchncs.de"
      +username: "@nilclass@discuss.tchncs.de"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1721268563 {#3057
        date: 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 {#3060 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
      +entries: Doctrine\ORM\PersistentCollection {#3066 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
      +posts: Doctrine\ORM\PersistentCollection {#3074 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
      +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
      +follows: Doctrine\ORM\PersistentCollection {#3086 …}
      +followers: Doctrine\ORM\PersistentCollection {#3088 …}
      +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
      +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
      +reports: Doctrine\ORM\PersistentCollection {#3098 …}
      +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
      +violations: Doctrine\ORM\PersistentCollection {#3102 …}
      +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
      +awards: Doctrine\ORM\PersistentCollection {#3106 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
      +categories: Doctrine\ORM\PersistentCollection {#3110 …}
      -id: 6046
      -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
      +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 {#3058
        date: 2024-07-10 19:01:52.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687291240 {#3059
        date: 2023-06-20 22:00:40.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
      +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
      +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 {#2826
        date: 2024-10-20 10:40:08.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
      +entries: Doctrine\ORM\PersistentCollection {#2850 …}
      +posts: Doctrine\ORM\PersistentCollection {#2853 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
      +bans: Doctrine\ORM\PersistentCollection {#2861 …}
      +reports: Doctrine\ORM\PersistentCollection {#2869 …}
      +badges: Doctrine\ORM\PersistentCollection {#2882 …}
      +logs: Doctrine\ORM\PersistentCollection {#2892 …}
      +awards: Doctrine\ORM\PersistentCollection {#2874 …}
      +categories: Doctrine\ORM\PersistentCollection {#2898 …}
      -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 {#2827
        date: 2024-09-25 09:01:54.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1687144409 {#2828
        date: 2023-06-19 05:13:29.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
    +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 {#1526
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1727 …}
    +votes: Doctrine\ORM\PersistentCollection {#1733 …}
    +reports: Doctrine\ORM\PersistentCollection {#1719 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
    +badges: Doctrine\ORM\PersistentCollection {#1621 …}
    +children: [
      App\Entity\EntryComment {#1697
        +user: App\Entity\User {#265
          +avatar: null
          +cover: null
          +email: "Stoney@aussie.zone"
          +username: "@Stoney@aussie.zone"
          +roles: []
          +followersCount: 0
          +homepage: "front"
          +about: null
          +lastActive: DateTime @1694781047 {#275
            date: 2023-09-15 14:30:47.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 {#253 …}
          +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
          +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
          +entries: Doctrine\ORM\PersistentCollection {#196 …}
          +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
          +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
          +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
          +posts: Doctrine\ORM\PersistentCollection {#84 …}
          +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
          +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
          +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
          +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
          +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
          +follows: Doctrine\ORM\PersistentCollection {#1917 …}
          +followers: Doctrine\ORM\PersistentCollection {#1601 …}
          +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
          +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
          +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
          +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
          +reports: Doctrine\ORM\PersistentCollection {#1791 …}
          +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
          +violations: Doctrine\ORM\PersistentCollection {#1824 …}
          +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
          +awards: Doctrine\ORM\PersistentCollection {#1929 …}
          +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
          +categories: Doctrine\ORM\PersistentCollection {#1880 …}
          -id: 46201
          -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
          -totpSecret: null
          -totpBackupCodes: []
          -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
          +apId: "Stoney@aussie.zone"
          +apProfileId: "https://aussie.zone/u/Stoney"
          +apPublicUrl: "https://aussie.zone/u/Stoney"
          +apFollowersUrl: null
          +apInboxUrl: "https://aussie.zone/inbox"
          +apDomain: "aussie.zone"
          +apPreferredUsername: "Stoney"
          +apDiscoverable: true
          +apManuallyApprovesFollowers: false
          +privateKey: null
          +publicKey: null
          +apFetchedAt: DateTime @1694781047 {#269
            date: 2023-09-15 14:30:47.0 +02:00
          }
          +apDeletedAt: null
          +apTimeoutAt: null
          +visibility: "visible             "
          +createdAt: DateTimeImmutable @1694781046 {#268
            date: 2023-09-15 14:30:46.0 +02:00
          }
        }
        +entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
        +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
        +image: null
        +parent: null
        +root: null
        +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1694781042 {#1439
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@nilclass@discuss.tchncs.de"
        ]
        +children: Doctrine\ORM\PersistentCollection {#1580 …}
        +nested: Doctrine\ORM\PersistentCollection {#1583 …}
        +votes: Doctrine\ORM\PersistentCollection {#1582 …}
        +reports: Doctrine\ORM\PersistentCollection {#1589 …}
        +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
        +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
        -id: 29231
        -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://aussie.zone/comment/2659403"
        +editedAt: null
        +createdAt: DateTimeImmutable @1694781042 {#1435
          date: 2023-09-15 14:30:42.0 +02:00
        }
        +"title": 29231
      }
    ]
    -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 {#1693
      date: 2023-08-25 09:07:12.0 +02:00
    }
    +createdAt: DateTimeImmutable @1692947137 {#1550
      date: 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.43 ms
Input props
[
  "comment" => App\Entity\EntryComment {#1697
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Stoney@aussie.zone"
      +username: "@Stoney@aussie.zone"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1694781047 {#275
        date: 2023-09-15 14:30:47.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 {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 46201
      -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Stoney@aussie.zone"
      +apProfileId: "https://aussie.zone/u/Stoney"
      +apPublicUrl: "https://aussie.zone/u/Stoney"
      +apFollowersUrl: null
      +apInboxUrl: "https://aussie.zone/inbox"
      +apDomain: "aussie.zone"
      +apPreferredUsername: "Stoney"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1694781047 {#269
        date: 2023-09-15 14:30:47.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694781046 {#268
        date: 2023-09-15 14:30:46.0 +02:00
      }
    }
    +entry: Proxies\__CG__\App\Entity\Entry {#1592
      +user: Proxies\__CG__\App\Entity\User {#2458
        +avatar: null
        +cover: null
        +email: "nilclass@discuss.tchncs.de"
        +username: "@nilclass@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1721268563 {#3057
          date: 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 {#3060 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
        +entries: Doctrine\ORM\PersistentCollection {#3066 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
        +posts: Doctrine\ORM\PersistentCollection {#3074 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
        +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
        +follows: Doctrine\ORM\PersistentCollection {#3086 …}
        +followers: Doctrine\ORM\PersistentCollection {#3088 …}
        +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
        +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
        +reports: Doctrine\ORM\PersistentCollection {#3098 …}
        +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
        +violations: Doctrine\ORM\PersistentCollection {#3102 …}
        +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
        +awards: Doctrine\ORM\PersistentCollection {#3106 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
        +categories: Doctrine\ORM\PersistentCollection {#3110 …}
        -id: 6046
        -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
        +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 {#3058
          date: 2024-07-10 19:01:52.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687291240 {#3059
          date: 2023-06-20 22:00:40.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
        +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
        +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 {#2826
          date: 2024-10-20 10:40:08.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
        +entries: Doctrine\ORM\PersistentCollection {#2850 …}
        +posts: Doctrine\ORM\PersistentCollection {#2853 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
        +bans: Doctrine\ORM\PersistentCollection {#2861 …}
        +reports: Doctrine\ORM\PersistentCollection {#2869 …}
        +badges: Doctrine\ORM\PersistentCollection {#2882 …}
        +logs: Doctrine\ORM\PersistentCollection {#2892 …}
        +awards: Doctrine\ORM\PersistentCollection {#2874 …}
        +categories: Doctrine\ORM\PersistentCollection {#2898 …}
        -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 {#2827
          date: 2024-09-25 09:01:54.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687144409 {#2828
          date: 2023-06-19 05:13:29.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
      +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 {#1526
        date: 2023-09-15 14:30:42.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1727 …}
      +votes: Doctrine\ORM\PersistentCollection {#1733 …}
      +reports: Doctrine\ORM\PersistentCollection {#1719 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
      +badges: Doctrine\ORM\PersistentCollection {#1621 …}
      +children: [
        App\Entity\EntryComment {#1697}
      ]
      -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 {#1693
        date: 2023-08-25 09:07:12.0 +02:00
      }
      +createdAt: DateTimeImmutable @1692947137 {#1550
        date: 2023-08-25 09:05:37.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
    +image: null
    +parent: null
    +root: null
    +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1694781042 {#1439
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@nilclass@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#1580 …}
    +nested: Doctrine\ORM\PersistentCollection {#1583 …}
    +votes: Doctrine\ORM\PersistentCollection {#1582 …}
    +reports: Doctrine\ORM\PersistentCollection {#1589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    -id: 29231
    -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://aussie.zone/comment/2659403"
    +editedAt: null
    +createdAt: DateTimeImmutable @1694781042 {#1435
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +"title": 29231
  }
  "showEntryTitle" => false
  "dateAsUrl" => true
  "showMagazineName" => false
]
Attributes
[]
Component
App\Twig\Components\EntryCommentComponent {#3711
  +comment: App\Entity\EntryComment {#1697
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Stoney@aussie.zone"
      +username: "@Stoney@aussie.zone"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1694781047 {#275
        date: 2023-09-15 14:30:47.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 {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 46201
      -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Stoney@aussie.zone"
      +apProfileId: "https://aussie.zone/u/Stoney"
      +apPublicUrl: "https://aussie.zone/u/Stoney"
      +apFollowersUrl: null
      +apInboxUrl: "https://aussie.zone/inbox"
      +apDomain: "aussie.zone"
      +apPreferredUsername: "Stoney"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1694781047 {#269
        date: 2023-09-15 14:30:47.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694781046 {#268
        date: 2023-09-15 14:30:46.0 +02:00
      }
    }
    +entry: Proxies\__CG__\App\Entity\Entry {#1592
      +user: Proxies\__CG__\App\Entity\User {#2458
        +avatar: null
        +cover: null
        +email: "nilclass@discuss.tchncs.de"
        +username: "@nilclass@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1721268563 {#3057
          date: 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 {#3060 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
        +entries: Doctrine\ORM\PersistentCollection {#3066 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
        +posts: Doctrine\ORM\PersistentCollection {#3074 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
        +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
        +follows: Doctrine\ORM\PersistentCollection {#3086 …}
        +followers: Doctrine\ORM\PersistentCollection {#3088 …}
        +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
        +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
        +reports: Doctrine\ORM\PersistentCollection {#3098 …}
        +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
        +violations: Doctrine\ORM\PersistentCollection {#3102 …}
        +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
        +awards: Doctrine\ORM\PersistentCollection {#3106 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
        +categories: Doctrine\ORM\PersistentCollection {#3110 …}
        -id: 6046
        -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
        +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 {#3058
          date: 2024-07-10 19:01:52.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687291240 {#3059
          date: 2023-06-20 22:00:40.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
        +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
        +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 {#2826
          date: 2024-10-20 10:40:08.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
        +entries: Doctrine\ORM\PersistentCollection {#2850 …}
        +posts: Doctrine\ORM\PersistentCollection {#2853 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
        +bans: Doctrine\ORM\PersistentCollection {#2861 …}
        +reports: Doctrine\ORM\PersistentCollection {#2869 …}
        +badges: Doctrine\ORM\PersistentCollection {#2882 …}
        +logs: Doctrine\ORM\PersistentCollection {#2892 …}
        +awards: Doctrine\ORM\PersistentCollection {#2874 …}
        +categories: Doctrine\ORM\PersistentCollection {#2898 …}
        -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 {#2827
          date: 2024-09-25 09:01:54.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687144409 {#2828
          date: 2023-06-19 05:13:29.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
      +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 {#1526
        date: 2023-09-15 14:30:42.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1727 …}
      +votes: Doctrine\ORM\PersistentCollection {#1733 …}
      +reports: Doctrine\ORM\PersistentCollection {#1719 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
      +badges: Doctrine\ORM\PersistentCollection {#1621 …}
      +children: [
        App\Entity\EntryComment {#1697}
      ]
      -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 {#1693
        date: 2023-08-25 09:07:12.0 +02:00
      }
      +createdAt: DateTimeImmutable @1692947137 {#1550
        date: 2023-08-25 09:05:37.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
    +image: null
    +parent: null
    +root: null
    +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1694781042 {#1439
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@nilclass@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#1580 …}
    +nested: Doctrine\ORM\PersistentCollection {#1583 …}
    +votes: Doctrine\ORM\PersistentCollection {#1582 …}
    +reports: Doctrine\ORM\PersistentCollection {#1589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    -id: 29231
    -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://aussie.zone/comment/2659403"
    +editedAt: null
    +createdAt: DateTimeImmutable @1694781042 {#1435
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +"title": 29231
  }
  +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 {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
  "showAvatar" => false
]
Attributes
[]
Component
App\Twig\Components\UserInlineComponent {#3770
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
  +showAvatar: false
}
date App\Twig\Components\DateComponent 12.0 MiB 0.13 ms
Input props
[
  "date" => DateTimeImmutable @1694781042 {#1435
    date: 2023-09-15 14:30:42.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#3828
  +date: DateTimeImmutable @1694781042 {#1435
    date: 2023-09-15 14:30:42.0 +02:00
  }
}
date_edited App\Twig\Components\DateEditedComponent 12.0 MiB 0.11 ms
Input props
[
  "createdAt" => DateTimeImmutable @1694781042 {#1435
    date: 2023-09-15 14:30:42.0 +02:00
  }
  "editedAt" => null
]
Attributes
[]
Component
App\Twig\Components\DateEditedComponent {#3882
  +createdAt: DateTimeImmutable @1694781042 {#1435
    date: 2023-09-15 14:30:42.0 +02:00
  }
  +editedAt: null
}
user_avatar App\Twig\Components\UserAvatarComponent 12.0 MiB 0.23 ms
Input props
[
  "user" => App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
  "width" => 40
  "height" => 40
  "asLink" => true
]
Attributes
[]
Component
App\Twig\Components\UserAvatarComponent {#3938
  +width: 40
  +height: 40
  +user: App\Entity\User {#265
    +avatar: null
    +cover: null
    +email: "Stoney@aussie.zone"
    +username: "@Stoney@aussie.zone"
    +roles: []
    +followersCount: 0
    +homepage: "front"
    +about: null
    +lastActive: DateTime @1694781047 {#275
      date: 2023-09-15 14:30:47.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 {#253 …}
    +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
    +entries: Doctrine\ORM\PersistentCollection {#196 …}
    +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
    +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
    +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
    +posts: Doctrine\ORM\PersistentCollection {#84 …}
    +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
    +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
    +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
    +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
    +follows: Doctrine\ORM\PersistentCollection {#1917 …}
    +followers: Doctrine\ORM\PersistentCollection {#1601 …}
    +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
    +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
    +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
    +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
    +reports: Doctrine\ORM\PersistentCollection {#1791 …}
    +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
    +violations: Doctrine\ORM\PersistentCollection {#1824 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
    +awards: Doctrine\ORM\PersistentCollection {#1929 …}
    +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
    +categories: Doctrine\ORM\PersistentCollection {#1880 …}
    -id: 46201
    -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
    -totpSecret: null
    -totpBackupCodes: []
    -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
    +apId: "Stoney@aussie.zone"
    +apProfileId: "https://aussie.zone/u/Stoney"
    +apPublicUrl: "https://aussie.zone/u/Stoney"
    +apFollowersUrl: null
    +apInboxUrl: "https://aussie.zone/inbox"
    +apDomain: "aussie.zone"
    +apPreferredUsername: "Stoney"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: false
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1694781047 {#269
      date: 2023-09-15 14:30:47.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1694781046 {#268
      date: 2023-09-15 14:30:46.0 +02:00
    }
  }
  +asLink: true
}
vote App\Twig\Components\VoteComponent 12.0 MiB 0.36 ms
Input props
[
  "subject" => App\Entity\EntryComment {#1697
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Stoney@aussie.zone"
      +username: "@Stoney@aussie.zone"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1694781047 {#275
        date: 2023-09-15 14:30:47.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 {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 46201
      -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Stoney@aussie.zone"
      +apProfileId: "https://aussie.zone/u/Stoney"
      +apPublicUrl: "https://aussie.zone/u/Stoney"
      +apFollowersUrl: null
      +apInboxUrl: "https://aussie.zone/inbox"
      +apDomain: "aussie.zone"
      +apPreferredUsername: "Stoney"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1694781047 {#269
        date: 2023-09-15 14:30:47.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694781046 {#268
        date: 2023-09-15 14:30:46.0 +02:00
      }
    }
    +entry: Proxies\__CG__\App\Entity\Entry {#1592
      +user: Proxies\__CG__\App\Entity\User {#2458
        +avatar: null
        +cover: null
        +email: "nilclass@discuss.tchncs.de"
        +username: "@nilclass@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1721268563 {#3057
          date: 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 {#3060 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
        +entries: Doctrine\ORM\PersistentCollection {#3066 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
        +posts: Doctrine\ORM\PersistentCollection {#3074 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
        +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
        +follows: Doctrine\ORM\PersistentCollection {#3086 …}
        +followers: Doctrine\ORM\PersistentCollection {#3088 …}
        +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
        +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
        +reports: Doctrine\ORM\PersistentCollection {#3098 …}
        +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
        +violations: Doctrine\ORM\PersistentCollection {#3102 …}
        +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
        +awards: Doctrine\ORM\PersistentCollection {#3106 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
        +categories: Doctrine\ORM\PersistentCollection {#3110 …}
        -id: 6046
        -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
        +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 {#3058
          date: 2024-07-10 19:01:52.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687291240 {#3059
          date: 2023-06-20 22:00:40.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
        +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
        +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 {#2826
          date: 2024-10-20 10:40:08.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
        +entries: Doctrine\ORM\PersistentCollection {#2850 …}
        +posts: Doctrine\ORM\PersistentCollection {#2853 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
        +bans: Doctrine\ORM\PersistentCollection {#2861 …}
        +reports: Doctrine\ORM\PersistentCollection {#2869 …}
        +badges: Doctrine\ORM\PersistentCollection {#2882 …}
        +logs: Doctrine\ORM\PersistentCollection {#2892 …}
        +awards: Doctrine\ORM\PersistentCollection {#2874 …}
        +categories: Doctrine\ORM\PersistentCollection {#2898 …}
        -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 {#2827
          date: 2024-09-25 09:01:54.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687144409 {#2828
          date: 2023-06-19 05:13:29.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
      +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 {#1526
        date: 2023-09-15 14:30:42.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1727 …}
      +votes: Doctrine\ORM\PersistentCollection {#1733 …}
      +reports: Doctrine\ORM\PersistentCollection {#1719 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
      +badges: Doctrine\ORM\PersistentCollection {#1621 …}
      +children: [
        App\Entity\EntryComment {#1697}
      ]
      -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 {#1693
        date: 2023-08-25 09:07:12.0 +02:00
      }
      +createdAt: DateTimeImmutable @1692947137 {#1550
        date: 2023-08-25 09:05:37.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
    +image: null
    +parent: null
    +root: null
    +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1694781042 {#1439
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@nilclass@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#1580 …}
    +nested: Doctrine\ORM\PersistentCollection {#1583 …}
    +votes: Doctrine\ORM\PersistentCollection {#1582 …}
    +reports: Doctrine\ORM\PersistentCollection {#1589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    -id: 29231
    -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://aussie.zone/comment/2659403"
    +editedAt: null
    +createdAt: DateTimeImmutable @1694781042 {#1435
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +"title": 29231
  }
]
Attributes
[]
Component
App\Twig\Components\VoteComponent {#4021
  +subject: App\Entity\EntryComment {#1697
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Stoney@aussie.zone"
      +username: "@Stoney@aussie.zone"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1694781047 {#275
        date: 2023-09-15 14:30:47.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 {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 46201
      -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Stoney@aussie.zone"
      +apProfileId: "https://aussie.zone/u/Stoney"
      +apPublicUrl: "https://aussie.zone/u/Stoney"
      +apFollowersUrl: null
      +apInboxUrl: "https://aussie.zone/inbox"
      +apDomain: "aussie.zone"
      +apPreferredUsername: "Stoney"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1694781047 {#269
        date: 2023-09-15 14:30:47.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694781046 {#268
        date: 2023-09-15 14:30:46.0 +02:00
      }
    }
    +entry: Proxies\__CG__\App\Entity\Entry {#1592
      +user: Proxies\__CG__\App\Entity\User {#2458
        +avatar: null
        +cover: null
        +email: "nilclass@discuss.tchncs.de"
        +username: "@nilclass@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1721268563 {#3057
          date: 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 {#3060 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
        +entries: Doctrine\ORM\PersistentCollection {#3066 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
        +posts: Doctrine\ORM\PersistentCollection {#3074 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
        +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
        +follows: Doctrine\ORM\PersistentCollection {#3086 …}
        +followers: Doctrine\ORM\PersistentCollection {#3088 …}
        +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
        +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
        +reports: Doctrine\ORM\PersistentCollection {#3098 …}
        +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
        +violations: Doctrine\ORM\PersistentCollection {#3102 …}
        +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
        +awards: Doctrine\ORM\PersistentCollection {#3106 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
        +categories: Doctrine\ORM\PersistentCollection {#3110 …}
        -id: 6046
        -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
        +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 {#3058
          date: 2024-07-10 19:01:52.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687291240 {#3059
          date: 2023-06-20 22:00:40.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
        +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
        +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 {#2826
          date: 2024-10-20 10:40:08.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
        +entries: Doctrine\ORM\PersistentCollection {#2850 …}
        +posts: Doctrine\ORM\PersistentCollection {#2853 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
        +bans: Doctrine\ORM\PersistentCollection {#2861 …}
        +reports: Doctrine\ORM\PersistentCollection {#2869 …}
        +badges: Doctrine\ORM\PersistentCollection {#2882 …}
        +logs: Doctrine\ORM\PersistentCollection {#2892 …}
        +awards: Doctrine\ORM\PersistentCollection {#2874 …}
        +categories: Doctrine\ORM\PersistentCollection {#2898 …}
        -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 {#2827
          date: 2024-09-25 09:01:54.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687144409 {#2828
          date: 2023-06-19 05:13:29.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
      +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 {#1526
        date: 2023-09-15 14:30:42.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1727 …}
      +votes: Doctrine\ORM\PersistentCollection {#1733 …}
      +reports: Doctrine\ORM\PersistentCollection {#1719 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
      +badges: Doctrine\ORM\PersistentCollection {#1621 …}
      +children: [
        App\Entity\EntryComment {#1697}
      ]
      -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 {#1693
        date: 2023-08-25 09:07:12.0 +02:00
      }
      +createdAt: DateTimeImmutable @1692947137 {#1550
        date: 2023-08-25 09:05:37.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
    +image: null
    +parent: null
    +root: null
    +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1694781042 {#1439
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@nilclass@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#1580 …}
    +nested: Doctrine\ORM\PersistentCollection {#1583 …}
    +votes: Doctrine\ORM\PersistentCollection {#1582 …}
    +reports: Doctrine\ORM\PersistentCollection {#1589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    -id: 29231
    -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://aussie.zone/comment/2659403"
    +editedAt: null
    +createdAt: DateTimeImmutable @1694781042 {#1435
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +"title": 29231
  }
  +formDest: "entry_comment"
  +showDownvote: true
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
}
boost App\Twig\Components\BoostComponent 12.0 MiB 0.73 ms
Input props
[
  "subject" => App\Entity\EntryComment {#1697
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Stoney@aussie.zone"
      +username: "@Stoney@aussie.zone"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1694781047 {#275
        date: 2023-09-15 14:30:47.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 {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 46201
      -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Stoney@aussie.zone"
      +apProfileId: "https://aussie.zone/u/Stoney"
      +apPublicUrl: "https://aussie.zone/u/Stoney"
      +apFollowersUrl: null
      +apInboxUrl: "https://aussie.zone/inbox"
      +apDomain: "aussie.zone"
      +apPreferredUsername: "Stoney"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1694781047 {#269
        date: 2023-09-15 14:30:47.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694781046 {#268
        date: 2023-09-15 14:30:46.0 +02:00
      }
    }
    +entry: Proxies\__CG__\App\Entity\Entry {#1592
      +user: Proxies\__CG__\App\Entity\User {#2458
        +avatar: null
        +cover: null
        +email: "nilclass@discuss.tchncs.de"
        +username: "@nilclass@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1721268563 {#3057
          date: 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 {#3060 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
        +entries: Doctrine\ORM\PersistentCollection {#3066 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
        +posts: Doctrine\ORM\PersistentCollection {#3074 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
        +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
        +follows: Doctrine\ORM\PersistentCollection {#3086 …}
        +followers: Doctrine\ORM\PersistentCollection {#3088 …}
        +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
        +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
        +reports: Doctrine\ORM\PersistentCollection {#3098 …}
        +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
        +violations: Doctrine\ORM\PersistentCollection {#3102 …}
        +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
        +awards: Doctrine\ORM\PersistentCollection {#3106 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
        +categories: Doctrine\ORM\PersistentCollection {#3110 …}
        -id: 6046
        -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
        +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 {#3058
          date: 2024-07-10 19:01:52.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687291240 {#3059
          date: 2023-06-20 22:00:40.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
        +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
        +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 {#2826
          date: 2024-10-20 10:40:08.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
        +entries: Doctrine\ORM\PersistentCollection {#2850 …}
        +posts: Doctrine\ORM\PersistentCollection {#2853 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
        +bans: Doctrine\ORM\PersistentCollection {#2861 …}
        +reports: Doctrine\ORM\PersistentCollection {#2869 …}
        +badges: Doctrine\ORM\PersistentCollection {#2882 …}
        +logs: Doctrine\ORM\PersistentCollection {#2892 …}
        +awards: Doctrine\ORM\PersistentCollection {#2874 …}
        +categories: Doctrine\ORM\PersistentCollection {#2898 …}
        -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 {#2827
          date: 2024-09-25 09:01:54.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687144409 {#2828
          date: 2023-06-19 05:13:29.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
      +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 {#1526
        date: 2023-09-15 14:30:42.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1727 …}
      +votes: Doctrine\ORM\PersistentCollection {#1733 …}
      +reports: Doctrine\ORM\PersistentCollection {#1719 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
      +badges: Doctrine\ORM\PersistentCollection {#1621 …}
      +children: [
        App\Entity\EntryComment {#1697}
      ]
      -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 {#1693
        date: 2023-08-25 09:07:12.0 +02:00
      }
      +createdAt: DateTimeImmutable @1692947137 {#1550
        date: 2023-08-25 09:05:37.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
    +image: null
    +parent: null
    +root: null
    +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1694781042 {#1439
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@nilclass@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#1580 …}
    +nested: Doctrine\ORM\PersistentCollection {#1583 …}
    +votes: Doctrine\ORM\PersistentCollection {#1582 …}
    +reports: Doctrine\ORM\PersistentCollection {#1589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    -id: 29231
    -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://aussie.zone/comment/2659403"
    +editedAt: null
    +createdAt: DateTimeImmutable @1694781042 {#1435
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +"title": 29231
  }
]
Attributes
[]
Component
App\Twig\Components\BoostComponent {#4078
  +formDest: "entry_comment"
  +subject: App\Entity\EntryComment {#1697
    +user: App\Entity\User {#265
      +avatar: null
      +cover: null
      +email: "Stoney@aussie.zone"
      +username: "@Stoney@aussie.zone"
      +roles: []
      +followersCount: 0
      +homepage: "front"
      +about: null
      +lastActive: DateTime @1694781047 {#275
        date: 2023-09-15 14:30:47.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 {#253 …}
      +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#249 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#238 …}
      +entries: Doctrine\ORM\PersistentCollection {#196 …}
      +entryVotes: Doctrine\ORM\PersistentCollection {#168 …}
      +entryComments: Doctrine\ORM\PersistentCollection {#141 …}
      +entryCommentVotes: Doctrine\ORM\PersistentCollection {#111 …}
      +posts: Doctrine\ORM\PersistentCollection {#84 …}
      +postVotes: Doctrine\ORM\PersistentCollection {#99 …}
      +postComments: Doctrine\ORM\PersistentCollection {#1863 …}
      +postCommentVotes: Doctrine\ORM\PersistentCollection {#1479 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#1658 …}
      +subscribedDomains: Doctrine\ORM\PersistentCollection {#1868 …}
      +follows: Doctrine\ORM\PersistentCollection {#1917 …}
      +followers: Doctrine\ORM\PersistentCollection {#1601 …}
      +blocks: Doctrine\ORM\PersistentCollection {#1805 …}
      +blockers: Doctrine\ORM\PersistentCollection {#1810 …}
      +blockedMagazines: Doctrine\ORM\PersistentCollection {#1857 …}
      +blockedDomains: Doctrine\ORM\PersistentCollection {#1860 …}
      +reports: Doctrine\ORM\PersistentCollection {#1791 …}
      +favourites: Doctrine\ORM\PersistentCollection {#2416 …}
      +violations: Doctrine\ORM\PersistentCollection {#1824 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1914 …}
      +awards: Doctrine\ORM\PersistentCollection {#1929 …}
      +subscribedCategories: Doctrine\ORM\PersistentCollection {#1867 …}
      +categories: Doctrine\ORM\PersistentCollection {#1880 …}
      -id: 46201
      -password: "$2y$13$KbsQPjyFVkemktpB/3eA3uhMuHlcZ0brjmS3m6.FeQjltPl37KK6q"
      -totpSecret: null
      -totpBackupCodes: []
      -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1894 …}
      +apId: "Stoney@aussie.zone"
      +apProfileId: "https://aussie.zone/u/Stoney"
      +apPublicUrl: "https://aussie.zone/u/Stoney"
      +apFollowersUrl: null
      +apInboxUrl: "https://aussie.zone/inbox"
      +apDomain: "aussie.zone"
      +apPreferredUsername: "Stoney"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: false
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1694781047 {#269
        date: 2023-09-15 14:30:47.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1694781046 {#268
        date: 2023-09-15 14:30:46.0 +02:00
      }
    }
    +entry: Proxies\__CG__\App\Entity\Entry {#1592
      +user: Proxies\__CG__\App\Entity\User {#2458
        +avatar: null
        +cover: null
        +email: "nilclass@discuss.tchncs.de"
        +username: "@nilclass@discuss.tchncs.de"
        +roles: []
        +followersCount: 0
        +homepage: "front"
        +about: null
        +lastActive: DateTime @1721268563 {#3057
          date: 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 {#3060 …}
        +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#3062 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#3064 …}
        +entries: Doctrine\ORM\PersistentCollection {#3066 …}
        +entryVotes: Doctrine\ORM\PersistentCollection {#3068 …}
        +entryComments: Doctrine\ORM\PersistentCollection {#3070 …}
        +entryCommentVotes: Doctrine\ORM\PersistentCollection {#3072 …}
        +posts: Doctrine\ORM\PersistentCollection {#3074 …}
        +postVotes: Doctrine\ORM\PersistentCollection {#3076 …}
        +postComments: Doctrine\ORM\PersistentCollection {#3078 …}
        +postCommentVotes: Doctrine\ORM\PersistentCollection {#3080 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#3082 …}
        +subscribedDomains: Doctrine\ORM\PersistentCollection {#3084 …}
        +follows: Doctrine\ORM\PersistentCollection {#3086 …}
        +followers: Doctrine\ORM\PersistentCollection {#3088 …}
        +blocks: Doctrine\ORM\PersistentCollection {#3090 …}
        +blockers: Doctrine\ORM\PersistentCollection {#3092 …}
        +blockedMagazines: Doctrine\ORM\PersistentCollection {#3094 …}
        +blockedDomains: Doctrine\ORM\PersistentCollection {#3096 …}
        +reports: Doctrine\ORM\PersistentCollection {#3098 …}
        +favourites: Doctrine\ORM\PersistentCollection {#3100 …}
        +violations: Doctrine\ORM\PersistentCollection {#3102 …}
        +notifications: Doctrine\ORM\PersistentCollection {#3104 …}
        +awards: Doctrine\ORM\PersistentCollection {#3106 …}
        +subscribedCategories: Doctrine\ORM\PersistentCollection {#3108 …}
        +categories: Doctrine\ORM\PersistentCollection {#3110 …}
        -id: 6046
        -password: "$2y$13$FEroXtR95mjA6.omogLZRe7NJuWUL6hb.9a/FfXkqyIPnPgg4Apme"
        -totpSecret: null
        -totpBackupCodes: []
        -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#3112 …}
        +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 {#3058
          date: 2024-07-10 19:01:52.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687291240 {#3059
          date: 2023-06-20 22:00:40.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +magazine: Proxies\__CG__\App\Entity\Magazine {#1579
        +icon: Proxies\__CG__\App\Entity\Image {#2847 …}
        +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 {#2826
          date: 2024-10-20 10:40:08.0 +02:00
        }
        +markedForDeletionAt: null
        +tags: null
        +moderators: Doctrine\ORM\PersistentCollection {#2846 …}
        +ownershipRequests: Doctrine\ORM\PersistentCollection {#2844 …}
        +moderatorRequests: Doctrine\ORM\PersistentCollection {#2849 …}
        +entries: Doctrine\ORM\PersistentCollection {#2850 …}
        +posts: Doctrine\ORM\PersistentCollection {#2853 …}
        +subscriptions: Doctrine\ORM\PersistentCollection {#2855 …}
        +bans: Doctrine\ORM\PersistentCollection {#2861 …}
        +reports: Doctrine\ORM\PersistentCollection {#2869 …}
        +badges: Doctrine\ORM\PersistentCollection {#2882 …}
        +logs: Doctrine\ORM\PersistentCollection {#2892 …}
        +awards: Doctrine\ORM\PersistentCollection {#2874 …}
        +categories: Doctrine\ORM\PersistentCollection {#2898 …}
        -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 {#2827
          date: 2024-09-25 09:01:54.0 +02:00
        }
        +apDeletedAt: null
        +apTimeoutAt: null
        +visibility: "visible             "
        +createdAt: DateTimeImmutable @1687144409 {#2828
          date: 2023-06-19 05:13:29.0 +02:00
        }
        +__isInitialized__: true
         …2
      }
      +image: null
      +domain: Proxies\__CG__\App\Entity\Domain {#1732 …}
      +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 {#1526
        date: 2023-09-15 14:30:42.0 +02:00
      }
      +ip: null
      +adaAmount: 0
      +tags: null
      +mentions: null
      +comments: Doctrine\ORM\PersistentCollection {#1727 …}
      +votes: Doctrine\ORM\PersistentCollection {#1733 …}
      +reports: Doctrine\ORM\PersistentCollection {#1719 …}
      +favourites: Doctrine\ORM\PersistentCollection {#1691 …}
      +notifications: Doctrine\ORM\PersistentCollection {#1711 …}
      +badges: Doctrine\ORM\PersistentCollection {#1621 …}
      +children: [
        App\Entity\EntryComment {#1697}
      ]
      -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 {#1693
        date: 2023-08-25 09:07:12.0 +02:00
      }
      +createdAt: DateTimeImmutable @1692947137 {#1550
        date: 2023-08-25 09:05:37.0 +02:00
      }
      +__isInitialized__: true
       …2
    }
    +magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …2}
    +image: null
    +parent: null
    +root: null
    +body: "increase the resistors by a factor of 100 or so and add a very small cap across the lower one. The cap inside the ADC is absolutely tiny, pF at best. So a 100nF cap would easily do the trick and supply the voltage as required."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1694781042 {#1439
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@nilclass@discuss.tchncs.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#1580 …}
    +nested: Doctrine\ORM\PersistentCollection {#1583 …}
    +votes: Doctrine\ORM\PersistentCollection {#1582 …}
    +reports: Doctrine\ORM\PersistentCollection {#1589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1572 …}
    +notifications: Doctrine\ORM\PersistentCollection {#1666 …}
    -id: 29231
    -bodyTs: "'100':8 '100nf':34 'absolut':27 'across':17 'adc':25 'add':12 'best':31 'cap':16,22,35 'easili':37 'factor':6 'increas':1 'insid':23 'lower':19 'one':20 'pf':29 'requir':46 'resistor':3 'small':15 'suppli':42 'tini':28 'trick':40 'voltag':44 'would':36"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://aussie.zone/comment/2659403"
    +editedAt: null
    +createdAt: DateTimeImmutable @1694781042 {#1435
      date: 2023-09-15 14:30:42.0 +02:00
    }
    +"title": 29231
  }
  -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 {#4459
  +label: "Sidebar position"
  +help: ""
  +settingsKey: "KBIN_GENERAL_SIDEBAR_POSITION"
  +values: [
    [
      "name" => "Left"
      "value" => "LEFT"
    ]
    [
      "name" => "Right"
      "value" => "RIGHT"
    ]
  ]
  +defaultValue: "RIGHT"
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.20 ms
Input props
[
  "label" => "Dynamic lists"
  "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4531
  +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 {#4594
  +label: "Rounded edges"
  +help: ""
  +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.12 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 {#4650
  +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 {#4709
  +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.12 ms
Input props
[
  "label" => "Show top bar"
  "settingsKey" => "KBIN_GENERAL_TOPBAR"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#4765
  +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 {#4821
  +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 {#4879
  +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 {#4942
  +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 {#5000
  +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.15 ms
Input props
[
  "label" => "Show subscribed magazines"
  "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES"
]
Attributes
[]
Component
App\Twig\Components\UserSettingsRowSwitchComponent {#5056
  +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 {#5112
  +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.12 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5168
  +label: "Auto media preview"
  +help: "Automatically expand media previews."
  +settingsKey: "KBIN_ENTRIES_SHOW_PREVIEW"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.12 ms
Input props
[
  "label" => "Compact view"
  "settingsKey" => "KBIN_ENTRIES_COMPACT"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5224
  +label: "Compact view"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_COMPACT"
  +defaultValue: false
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.12 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5280
  +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 {#5336
  +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 {#5392
  +label: "Show thumbnails"
  +help: ""
  +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS"
  +defaultValue: true
  +reloadRequired: true
}
settings_row_switch App\Twig\Components\SettingsRowSwitchComponent 12.0 MiB 0.12 ms
Input props
[
  "label" => "Auto media preview"
  "help" => "Automatically expand media previews."
  "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW"
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5448
  +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.14 ms
Input props
[
  "label" => "Show users’ avatars"
  "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS"
  "defaultValue" => true
]
Attributes
[]
Component
App\Twig\Components\SettingsRowSwitchComponent {#5504
  +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 {#5560
  +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 {#5618
  +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 @1694781046 {#268
    date: 2023-09-15 14:30:46.0 +02:00
  }
]
Attributes
[]
Component
App\Twig\Components\DateComponent {#5691
  +date: DateTimeImmutable @1694781046 {#268
    date: 2023-09-15 14:30:46.0 +02:00
  }
}
related_magazines App\Twig\Components\RelatedMagazinesComponent 12.0 MiB 2.27 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedMagazinesComponent {#5778
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_magazines"
  +refreshedRandom: false
  -repository: App\Repository\MagazineRepository {#1370 …}
  -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.27 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\ActiveUsersComponent {#5843
  +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.38 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedCategoriesComponent {#5902
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +title: "random_categories"
  +refreshedRandom: false
  -repository: App\Repository\CategoryRepository {#5903 …}
  -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.58 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedPostsComponent {#5972
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +post: null
  +title: "random_posts"
  +refreshedRandom: false
  -repository: App\Repository\PostRepository {#1764 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1504 …}
}
related_entries App\Twig\Components\RelatedEntriesComponent 12.0 MiB 1.42 ms
Input props
[
  "magazine" => null
  "tag" => null
]
Attributes
[]
Component
App\Twig\Components\RelatedEntriesComponent {#6041
  +limit: 4
  +tag: null
  +magazine: null
  +type: "random"
  +entry: null
  +title: "random_entries"
  +refreshedRandom: false
  -repository: App\Repository\EntryRepository {#1763 …}
  -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …}
  -twig: Twig\Environment {#1252 …}
  -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …}
  -mentionManager: App\Service\MentionManager {#1504 …}
}
support_us_block App\Twig\Components\SupportUsBlock 12.0 MiB 0.19 ms
Input props
[]
Attributes
[]
Component
App\Twig\Components\SupportUsBlock {#6110
  +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 {#6111 …}
}
featured_magazines App\Twig\Components\FeaturedMagazinesComponent 12.0 MiB 0.85 ms
Input props
[
  "magazine" => null
]
Attributes
[]
Component
App\Twig\Components\FeaturedMagazinesComponent {#6203
  +magazine: null
  -twig: Twig\Environment {#1252 …}
  -repository: App\Repository\MagazineRepository {#1370 …}
}