Components
24
Twig Components
167
Render Count
289
ms
Render Time
16.0
MiB
Memory Usage
Components
Render calls
entry | App\Twig\Components\EntryComponent | 12.0 MiB | 15.65 ms | |
---|---|---|---|---|
Input props | [ "entry" => App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } "isSingle" => true "showShortSentence" => false "showBody" => true ] |
|||
Attributes | [ "class" => "entry--single section--top" ] |
|||
Component | App\Twig\Components\EntryComponent {#2967 -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} -newCommentMarkerCount: App\Kbin\NewCommentMarker\NewCommentMarkerCount {#2968 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +isSingle: true +showShortSentence: false +showBody: true +showMagazineName: false +canSeeTrash: false +newComments: 0 } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.44 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#3160 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.45 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#3230 +date: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.20 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } "editedAt" => DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#3294 +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.43 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#3361 +subject: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +formDest: "entry" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 5.68 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#3432 +formDest: "entry" +subject: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entries_cross | App\Twig\Components\EntriesCrossComponent | 12.0 MiB | 37.35 ms | |
---|---|---|---|---|
Input props | [ "entry" => App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntriesCrossComponent {#3741 +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } -repository: App\Repository\EntryRepository {#271 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} } |
editor_toolbar | App\Twig\Components\EditorToolbarComponent | 12.0 MiB | 0.24 ms | |
---|---|---|---|---|
Input props | [ "id" => "entry_comment_6833c9c47a83e4.57449581_body" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EditorToolbarComponent {#3866 +id: "entry_comment_6833c9c47a83e4.57449581_body" } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 23.88 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } "showNested" => true "dateAsUrl" => false "showMagazineName" => false "showEntryTitle" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#4353 +comment: App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 1 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.27 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#4525 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.20 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#4580 +date: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.18 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#4634 +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.33 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#4690 +width: 40 +height: 40 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.51 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#4773 +subject: App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.89 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#4830 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 1.12 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } "level" => 1 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#5075 +comment: App\Entity\EntryComment {#4066 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "What does shiftDataOut do? You loop over it but you give the whole byte to it anyway in each loop." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695880391 {#4075 : 2023-09-28 07:53:11.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4064 …} +nested: Doctrine\ORM\PersistentCollection {#4062 …} +votes: Doctrine\ORM\PersistentCollection {#4060 …} +reports: Doctrine\ORM\PersistentCollection {#4058 …} +favourites: Doctrine\ORM\PersistentCollection {#4026 …} +notifications: Doctrine\ORM\PersistentCollection {#4030 …} -id: 29964 -bodyTs: "'anyway':17 'byte':14 'give':11 'loop':6,20 'shiftdataout':3 'whole':13" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282908" +editedAt: null +createdAt: DateTimeImmutable @1695880391 {#4011 : 2023-09-28 07:53:11.0 +02:00 } } +nestedComments: [] +level: 1 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 58.55 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } "showNested" => true "dateAsUrl" => false "showMagazineName" => false "showEntryTitle" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#5159 +comment: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 1 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.55 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#5204 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#5259 +date: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.09 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#5313 +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#5367 +width: 40 +height: 40 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 2.22 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#5436 +subject: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 2.19 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#5493 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 39.08 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } "level" => 1 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#5733 +comment: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +nestedComments: [ 29958 => App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098} +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } 29967 => App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328} +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } 29959 => App\Entity\EntryComment {#4366} 29960 => App\Entity\EntryComment {#4380} ] +level: 1 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 37.76 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } "showNested" => true "level" => 2 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#5793 +comment: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 2 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#5840 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#5895 +date: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.11 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#5949 +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#6003 +width: 40 +height: 40 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.52 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#6072 +subject: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.85 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#6129 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 28.49 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } "level" => 2 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#6369 +comment: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +nestedComments: [] +level: 2 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 24.88 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } "showNested" => true "level" => 3 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#6424 +comment: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 3 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.24 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#6469 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.26 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#6524 +date: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } "editedAt" => DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#6578 +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#6632 +width: 40 +height: 40 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.51 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#6701 +subject: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +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 {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#6758 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 17.91 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } "level" => 3 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#6998 +comment: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +nestedComments: [] +level: 3 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 17.24 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } "showNested" => true "level" => 4 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#7053 +comment: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 4 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#7098 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#7153 +date: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.09 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#7207 +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#7261 +width: 40 +height: 40 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 3.06 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#7330 +subject: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.75 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#3120 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 8.56 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } "level" => 4 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#7461 +comment: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +nestedComments: [] +level: 4 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 7.80 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } "showNested" => true "level" => 5 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#7516 +comment: App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 5 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#7561 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#7616 +date: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.09 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#7670 +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#7724 +width: 40 +height: 40 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.63 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#7793 +subject: App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.80 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#7850 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 0.65 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } "level" => 5 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#8090 +comment: App\Entity\EntryComment {#4418 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4380 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4366 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4328 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4098 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would it work if you made that delay 1000?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882010 {#4104 : 2023-09-28 08:20:10.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4103 …} +nested: Doctrine\ORM\PersistentCollection {#4102 …} +votes: Doctrine\ORM\PersistentCollection {#4093 …} +reports: Doctrine\ORM\PersistentCollection {#4096 …} +favourites: Doctrine\ORM\PersistentCollection {#4091 …} +notifications: Doctrine\ORM\PersistentCollection {#4089 …} -id: 29957 -bodyTs: "'1000':9 'delay':8 'made':6 'work':3 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857487" +editedAt: null +createdAt: DateTimeImmutable @1695868540 {#4109 : 2023-09-28 04:35:40.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Also try upping the usleep call?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868653 {#4326 : 2023-09-28 04:37:33.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4329 …} +nested: Doctrine\ORM\PersistentCollection {#4331 …} +votes: Doctrine\ORM\PersistentCollection {#4333 …} +reports: Doctrine\ORM\PersistentCollection {#4335 …} +favourites: Doctrine\ORM\PersistentCollection {#4337 …} +notifications: Doctrine\ORM\PersistentCollection {#4339 …} -id: 29958 -bodyTs: "'also':1 'call':6 'tri':2 'up':3 'usleep':5" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857536" +editedAt: null +createdAt: DateTimeImmutable @1695868653 {#4327 : 2023-09-28 04:37:33.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Hmmmm do you want to write to both shift register at the same time? I say this because you’re looping 16 times, but seem to be sending the high and low bytes out 16 times over rather than one bit each time, although you are shifting the input." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869074 {#4363 : 2023-09-28 04:44:34.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4367 …} +nested: Doctrine\ORM\PersistentCollection {#4369 …} +votes: Doctrine\ORM\PersistentCollection {#4371 …} +reports: Doctrine\ORM\PersistentCollection {#4373 …} +favourites: Doctrine\ORM\PersistentCollection {#4375 …} +notifications: Doctrine\ORM\PersistentCollection {#4377 …} -id: 29959 -bodyTs: "'16':22,35 'although':44 'bit':41 'byte':33 'high':30 'hmmmm':1 'input':49 'loop':21 'low':32 'one':40 'rather':38 're':20 'regist':10 'say':16 'seem':25 'send':28 'shift':9,47 'time':14,23,36,43 'want':4 'write':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857666" +editedAt: DateTimeImmutable @1695869154 {#4364 : 2023-09-28 04:45:54.0 +02:00 } +createdAt: DateTimeImmutable @1695869074 {#4365 : 2023-09-28 04:44:34.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Maybe I’m getting ahead of myself, but maybe try using digitalWrite for a single bit instead of shiftDataOut?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695869203 {#4385 : 2023-09-28 04:46:43.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4388 …} +nested: Doctrine\ORM\PersistentCollection {#4392 …} +votes: Doctrine\ORM\PersistentCollection {#4394 …} +reports: Doctrine\ORM\PersistentCollection {#4395 …} +favourites: Doctrine\ORM\PersistentCollection {#4397 …} +notifications: Doctrine\ORM\PersistentCollection {#4399 …} -id: 29960 -bodyTs: "'ahead':5 'bit':16 'digitalwrit':12 'get':4 'instead':17 'm':3 'mayb':1,9 'shiftdataout':19 'singl':15 'tri':10 'use':11" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857706" +editedAt: null +createdAt: DateTimeImmutable @1695869203 {#4382 : 2023-09-28 04:46:43.0 +02:00 } } +root: App\Entity\EntryComment {#4098} +body: "Good idea, I’ve tried usleep after all lines, but no change…" +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882009 {#4423 : 2023-09-28 08:20:09.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4426 …} +nested: Doctrine\ORM\PersistentCollection {#4430 …} +votes: Doctrine\ORM\PersistentCollection {#4432 …} +reports: Doctrine\ORM\PersistentCollection {#4433 …} +favourites: Doctrine\ORM\PersistentCollection {#4435 …} +notifications: Doctrine\ORM\PersistentCollection {#4437 …} -id: 29967 -bodyTs: "'chang':12 'good':1 'idea':2 'line':9 'tri':5 'usleep':6 've':4" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318310" +editedAt: null +createdAt: DateTimeImmutable @1695882009 {#4420 : 2023-09-28 08:20:09.0 +02:00 } } +nestedComments: [] +level: 5 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 14.0 MiB | 79.65 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } "showNested" => true "dateAsUrl" => false "showMagazineName" => false "showEntryTitle" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#8199 +comment: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 1 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#8244 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#8299 +date: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } "editedAt" => DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#8353 +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#8407 +width: 40 +height: 40 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.38 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#8516 +subject: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.71 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#8573 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 14.0 MiB | 72.12 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } "level" => 1 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#8813 +comment: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +nestedComments: [ 29968 => App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184} +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } 29961 => App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184} +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } 29963 => App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347} +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } 29970 => App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404} +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } 29956 => App\Entity\EntryComment {#4313} 29969 => App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404} +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } ] +level: 1 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 6.37 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } "showNested" => true "level" => 2 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#8873 +comment: App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 2 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#8918 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#8973 +date: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.11 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#9027 +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#9081 +width: 40 +height: 40 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.43 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#9154 +subject: App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.78 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#9211 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 0.48 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } "level" => 2 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#9451 +comment: App\Entity\EntryComment {#4298 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: """ You’re 100% right, I’ve lost ‘i’ somewhere in my debugging process\n \n byte upper_byte = input_bin >> (8+i) ; byte lower_byte = (input_bin >> i) & 0x00FF; """ +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882392 {#4296 : 2023-09-28 08:26:32.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4299 …} +nested: Doctrine\ORM\PersistentCollection {#4301 …} +votes: Doctrine\ORM\PersistentCollection {#4303 …} +reports: Doctrine\ORM\PersistentCollection {#4305 …} +favourites: Doctrine\ORM\PersistentCollection {#4307 …} +notifications: Doctrine\ORM\PersistentCollection {#4309 …} -id: 29968 -bodyTs: "'0x00ff':27 '100':3 '8':19 'bin':18,25 'byte':14,16,21,23 'debug':12 'input':17,24 'lost':7 'lower':22 'process':13 're':2 'right':4 'somewher':9 'upper':15 've':6" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3318416" +editedAt: null +createdAt: DateTimeImmutable @1695882392 {#4297 : 2023-09-28 08:26:32.0 +02:00 } } +nestedComments: [] +level: 2 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 14.0 MiB | 64.05 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } "showNested" => true "level" => 2 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#9517 +comment: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 2 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#9562 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#9617 +date: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.10 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#9671 +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#9725 +width: 40 +height: 40 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.73 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#9794 +subject: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.80 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#9851 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 14.0 MiB | 55.42 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } "level" => 2 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#10091 +comment: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +nestedComments: [] +level: 2 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 14.0 MiB | 54.57 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } "showNested" => true "level" => 3 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#10146 +comment: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 3 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#10191 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#10246 +date: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#10300 +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#10354 +width: 40 +height: 40 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 2.35 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#10423 +subject: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.68 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#10480 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 46.15 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } "level" => 3 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#10720 +comment: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +nestedComments: [] +level: 3 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 42.29 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } "showNested" => true "level" => 4 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#10775 +comment: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 4 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 3.21 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#10820 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.74 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#10875 +date: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.68 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } "editedAt" => DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#10929 +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 1.03 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#10983 +width: 40 +height: 40 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 1.42 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#11052 +subject: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 0.75 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#11109 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 20.11 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } "level" => 4 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#11349 +comment: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +nestedComments: [] +level: 4 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 10.83 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } "showNested" => true "level" => 5 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#11404 +comment: App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 5 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#11449 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.18 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#11504 +date: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } "editedAt" => DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#11558 +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.20 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#11612 +width: 40 +height: 40 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.64 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#11681 +subject: App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 3.25 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#11738 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 0.41 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } "level" => 5 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#11978 +comment: App\Entity\EntryComment {#4442 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "2nd line of what? Oh you are completely right. My bad. Idk why I wrote that. I’ll fix my comment." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882892 {#4439 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4443 …} +nested: Doctrine\ORM\PersistentCollection {#4445 …} +votes: Doctrine\ORM\PersistentCollection {#4447 …} +reports: Doctrine\ORM\PersistentCollection {#4449 …} +favourites: Doctrine\ORM\PersistentCollection {#4451 …} +notifications: Doctrine\ORM\PersistentCollection {#4453 …} -id: 29970 -bodyTs: "'2nd':1 'bad':11 'comment':21 'complet':8 'fix':19 'idk':12 'line':2 'll':18 'oh':5 'right':9 'wrote':15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4064314" +editedAt: DateTimeImmutable @1695883114 {#4440 : 2023-09-28 08:38:34.0 +02:00 } +createdAt: DateTimeImmutable @1695882892 {#4441 : 2023-09-28 08:34:52.0 +02:00 } } +nestedComments: [] +level: 5 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 12.0 MiB | 8.13 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } "showNested" => true "level" => 5 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#12044 +comment: App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 5 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#12089 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 12.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#12144 +date: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 12.0 MiB | 0.12 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#12198 +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 12.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#12252 +width: 40 +height: 40 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 12.0 MiB | 0.76 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#12321 +subject: App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 12.0 MiB | 1.28 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#12378 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 12.0 MiB | 0.43 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } "level" => 5 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#12618 +comment: App\Entity\EntryComment {#4457 +user: App\Entity\User {#4087 +avatar: null +cover: null +email: "mvirts@lemmy.world" +username: "@mvirts@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1729583515 {#4107 : 2024-10-22 09:51:55.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 {#4086 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4084 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4082 …} +entries: Doctrine\ORM\PersistentCollection {#4080 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4078 …} +entryComments: Doctrine\ORM\PersistentCollection {#4076 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4135 …} +posts: Doctrine\ORM\PersistentCollection {#4138 …} +postVotes: Doctrine\ORM\PersistentCollection {#4140 …} +postComments: Doctrine\ORM\PersistentCollection {#4142 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4144 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4146 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4148 …} +follows: Doctrine\ORM\PersistentCollection {#4150 …} +followers: Doctrine\ORM\PersistentCollection {#4152 …} +blocks: Doctrine\ORM\PersistentCollection {#4154 …} +blockers: Doctrine\ORM\PersistentCollection {#4156 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4158 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4160 …} +reports: Doctrine\ORM\PersistentCollection {#4162 …} +favourites: Doctrine\ORM\PersistentCollection {#4164 …} +violations: Doctrine\ORM\PersistentCollection {#4166 …} +notifications: Doctrine\ORM\PersistentCollection {#4168 …} +awards: Doctrine\ORM\PersistentCollection {#4170 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4172 …} +categories: Doctrine\ORM\PersistentCollection {#4174 …} -id: 19523 -password: "$2y$13$WO7MXELeuSoNGiUsr5qvDe8sKegG.N6Ka6xIE6qho31vK9BUWxYvS" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4176 …} +apId: "mvirts@lemmy.world" +apProfileId: "https://lemmy.world/u/mvirts" +apPublicUrl: "https://lemmy.world/u/mvirts" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "mvirts" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729282890 {#4108 : 2024-10-18 22:21:30.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688619237 {#4105 : 2023-07-06 06:53:57.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4404 +user: App\Entity\User {#4014 +avatar: null +cover: null +email: "FuzzChef@feddit.de" +username: "@FuzzChef@feddit.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1700343252 {#4074 : 2023-11-18 22:34:12.0 +01: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 {#4015 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4018 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4010 …} +entries: Doctrine\ORM\PersistentCollection {#4008 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4006 …} +entryComments: Doctrine\ORM\PersistentCollection {#4003 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4001 …} +posts: Doctrine\ORM\PersistentCollection {#3998 …} +postVotes: Doctrine\ORM\PersistentCollection {#3996 …} +postComments: Doctrine\ORM\PersistentCollection {#3994 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#3991 …} +subscriptions: Doctrine\ORM\PersistentCollection {#3989 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#3987 …} +follows: Doctrine\ORM\PersistentCollection {#4130 …} +followers: Doctrine\ORM\PersistentCollection {#4126 …} +blocks: Doctrine\ORM\PersistentCollection {#4115 …} +blockers: Doctrine\ORM\PersistentCollection {#4106 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4095 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4132 …} +reports: Doctrine\ORM\PersistentCollection {#4129 …} +favourites: Doctrine\ORM\PersistentCollection {#4092 …} +violations: Doctrine\ORM\PersistentCollection {#4119 …} +notifications: Doctrine\ORM\PersistentCollection {#4122 …} +awards: Doctrine\ORM\PersistentCollection {#4120 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4118 …} +categories: Doctrine\ORM\PersistentCollection {#4117 …} -id: 47238 -password: "$2y$13$GCB1301EqCg1eaOSQMPio.GxZvpiPmaTE3WzRSEDxCRVQNjw.NOd." -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4110 …} +apId: "FuzzChef@feddit.de" +apProfileId: "https://feddit.de/u/FuzzChef" +apPublicUrl: "https://feddit.de/u/FuzzChef" +apFollowersUrl: null +apInboxUrl: "https://feddit.de/inbox" +apDomain: "feddit.de" +apPreferredUsername: "FuzzChef" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1707940272 {#4070 : 2024-02-14 20:51:12.0 +01:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695880007 {#4068 : 2023-09-28 07:46:47.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4347 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4313 +user: App\Entity\User {#4087} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4184 +user: App\Entity\User {#4197} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: """ The first two lines of the for loop,\n \n ```\n \n <span style="color:#323232;">byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;">byte lower_byte = input_bin & 0x00FF;\n </span>\n ```\n \n don’t really accomplish anything. The first line is bit shifting to the right 8, and then you just bitwise and it resulting in the same thing. For example, starting with `input_bin`:\n \n ```\n \n <span style="color:#323232;">1000 0000 0000 0000\n </span><span style="color:#323232;">>> 8\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span><span style="color:#323232;">& 0xFF\n </span><span style="color:#323232;">0000 0000 1000 0000\n </span>\n ```\n \n So, every time you go through a cycle of the for loop, you’ll just start with the same values in `upper_byte`, and `lower_byte`. To sequentially output each shifted value, you’ll instead want something like:\n \n ```\n \n <span style="color:#323232;">output_value = 0b1\n </span><span style="color:#323232;">for i = 1 to 16:\n </span><span style="color:#323232;"> latch(low)\n </span><span style="color:#323232;"> shift_out(output_value)\n </span><span style="color:#323232;"> latch(high)\n </span><span style="color:#323232;"> output_value = output_value << 1\n </span>\n ```\n \n That is, if I interpereted correctly that you want the shift registers to output the following:\n \n ```\n \n <span style="color:#323232;">output_count, upper_shift_register, lower_shift_register\n </span><span style="color:#323232;">1, 00000000, 00000001\n </span><span style="color:#323232;">2, 00000000, 00000010\n </span><span style="color:#323232;">3, 00000000, 00000100\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">.\n </span><span style="color:#323232;">16, 10000000, 00000000\n </span>\n ```\n \n Note: Lemmy has a bug where it doesn’t format some symbols correctly, so the left angle bracket gets formatted as `<`. The same issue exists for the right angle bracket, the ampersand, and I would presume others. """ +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695882894 {#4178 : 2023-09-28 08:34:54.0 +02:00 } +ip: null +tags: [ "323232" ] +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4185 …} +nested: Doctrine\ORM\PersistentCollection {#4187 …} +votes: Doctrine\ORM\PersistentCollection {#4189 …} +reports: Doctrine\ORM\PersistentCollection {#4191 …} +favourites: Doctrine\ORM\PersistentCollection {#4193 …} +notifications: Doctrine\ORM\PersistentCollection {#4195 …} -id: 29950 -bodyTs: "'0000':55,56,57,59,60,62,64,65,67 '00000000':152,155,158,162 '00000001':153 '00000010':156 '00000100':159 '0b1':108 '0x00ff':20 '0xff':63 '1':111,126,151 '1000':54,61,66 '10000000':161 '16':113,160 '2':154 '3':157 '8':14,35,58 'accomplish':24 'ampersand':194 'angl':179,191 'anyth':25 'bin':13,19,53 'bit':30 'bitwis':40 'bracket':180,192 'bug':167 'byte':9,11,15,17,90,93 'correct':132,175 'count':144 'cycl':75 'doesn':170 'everi':69 'exampl':49 'exist':187 'first':2,27 'follow':142 'format':172,182 'get':181 'go':72 'high':121 'input':12,18,52 'instead':102 'interperet':131 'issu':186 'latch':114,120 'left':178 'lemmi':164 'like':105 'line':4,28 'll':81,101 'loop':8,79 'low':115 'lower':16,92,148 'note':163 'other':199 'output':96,106,118,122,124,140,143 'presum':198 'realli':23 'regist':138,147,150 'result':43 'right':34,190 'sequenti':95 'shift':31,98,116,137,146,149 'someth':104 'start':50,83 'symbol':174 'thing':47 'time':70 'two':3 'upper':10,89,145 'valu':87,99,107,119,123,125 'want':103,135 'would':197" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4055088" +editedAt: DateTimeImmutable @1695883315 {#4179 : 2023-09-28 08:41:55.0 +02:00 } +createdAt: DateTimeImmutable @1695856746 {#4180 : 2023-09-28 01:19:06.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think you got and and or switched, first two lines should be fine for shifting the top 8 bits down." +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695868403 {#4311 : 2023-09-28 04:33:23.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4314 …} +nested: Doctrine\ORM\PersistentCollection {#4316 …} +votes: Doctrine\ORM\PersistentCollection {#4318 …} +reports: Doctrine\ORM\PersistentCollection {#4320 …} +favourites: Doctrine\ORM\PersistentCollection {#4322 …} +notifications: Doctrine\ORM\PersistentCollection {#4324 …} -id: 29956 -bodyTs: "'8':19 'bit':20 'fine':14 'first':9 'got':4 'line':11 'shift':16 'switch':8 'think':2 'top':18 'two':10" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3857440" +editedAt: null +createdAt: DateTimeImmutable @1695868403 {#4312 : 2023-09-28 04:33:23.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I don’t follow what you mean." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695873317 {#4346 : 2023-09-28 05:55:17.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4350 …} +nested: Doctrine\ORM\PersistentCollection {#4355 …} +votes: Doctrine\ORM\PersistentCollection {#4351 …} +reports: Doctrine\ORM\PersistentCollection {#4357 …} +favourites: Doctrine\ORM\PersistentCollection {#4359 …} +notifications: Doctrine\ORM\PersistentCollection {#4361 …} -id: 29961 -bodyTs: "'follow':4 'mean':7" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4061189" +editedAt: null +createdAt: DateTimeImmutable @1695873317 {#4343 : 2023-09-28 05:55:17.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "I think what he refers to is that you seem to do a bitwise or for the second line instead of the bitwise and." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695880005 {#4401 : 2023-09-28 07:46:45.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" ] +children: Doctrine\ORM\PersistentCollection {#4405 …} +nested: Doctrine\ORM\PersistentCollection {#4407 …} +votes: Doctrine\ORM\PersistentCollection {#4409 …} +reports: Doctrine\ORM\PersistentCollection {#4411 …} +favourites: Doctrine\ORM\PersistentCollection {#4413 …} +notifications: Doctrine\ORM\PersistentCollection {#4415 …} -id: 29963 -bodyTs: "'bitwis':14,23 'instead':20 'line':19 'refer':5 'second':18 'seem':10 'think':2" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://feddit.de/comment/3282813" +editedAt: DateTimeImmutable @1695880083 {#4402 : 2023-09-28 07:48:03.0 +02:00 } +createdAt: DateTimeImmutable @1695880005 {#4403 : 2023-09-28 07:46:45.0 +02:00 } } +root: App\Entity\EntryComment {#4184} +body: "Yes that’s what I was thinking" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695882862 {#4455 : 2023-09-28 08:34:22.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" "@mvirts@lemmy.world" "@FuzzChef@feddit.de" ] +children: Doctrine\ORM\PersistentCollection {#4458 …} +nested: Doctrine\ORM\PersistentCollection {#4460 …} +votes: Doctrine\ORM\PersistentCollection {#4462 …} +reports: Doctrine\ORM\PersistentCollection {#4464 …} +favourites: Doctrine\ORM\PersistentCollection {#4466 …} +notifications: Doctrine\ORM\PersistentCollection {#4468 …} -id: 29969 -bodyTs: "'think':7 'yes':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemmy.world/comment/3861373" +editedAt: null +createdAt: DateTimeImmutable @1695882862 {#4456 : 2023-09-28 08:34:22.0 +02:00 } } +nestedComments: [] +level: 5 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 14.0 MiB | 15.34 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } "showNested" => true "dateAsUrl" => false "showMagazineName" => false "showEntryTitle" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#12727 +comment: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 1 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 14.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#12772 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 14.0 MiB | 0.21 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#12827 +date: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 14.0 MiB | 0.10 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } "editedAt" => DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#12881 +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } } |
user_avatar | App\Twig\Components\UserAvatarComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#12935 +width: 40 +height: 40 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 14.0 MiB | 0.37 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#13004 +subject: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 14.0 MiB | 0.67 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#13061 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 14.0 MiB | 8.49 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } "level" => 1 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#13301 +comment: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +nestedComments: [ 29928 => App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258} +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } ] +level: 1 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
entry_comment | App\Twig\Components\EntryCommentComponent | 14.0 MiB | 7.14 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } "showNested" => true "level" => 2 "showEntryTitle" => false "showMagazineName" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\EntryCommentComponent {#13361 +comment: App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } +showMagazineName: false +showEntryTitle: false +showNested: true +level: 2 +canSeeTrash: false +dateAsUrl: false -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -authorizationChecker: Symfony\Component\Security\Core\Authorization\AuthorizationChecker {#931 …} } |
user_inline | App\Twig\Components\UserInlineComponent | 14.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "showAvatar" => false ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#13406 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: false } |
date | App\Twig\Components\DateComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#13461 +date: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } |
date_edited | App\Twig\Components\DateEditedComponent | 14.0 MiB | 0.10 ms | |
---|---|---|---|---|
Input props | [ "createdAt" => DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } "editedAt" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateEditedComponent {#13515 +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } +editedAt: null } |
user_avatar | App\Twig\Components\UserAvatarComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } "width" => 40 "height" => 40 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#13569 +width: 40 +height: 40 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +asLink: true } |
vote | App\Twig\Components\VoteComponent | 14.0 MiB | 0.48 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\VoteComponent {#13638 +subject: App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } +formDest: "entry_comment" +showDownvote: true -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
boost | App\Twig\Components\BoostComponent | 14.0 MiB | 0.86 ms | |
---|---|---|---|---|
Input props | [ "subject" => App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\BoostComponent {#13695 +formDest: "entry_comment" +subject: App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} } |
entry_comments_nested | App\Twig\Components\EntryCommentsNestedComponent | 14.0 MiB | 0.34 ms | |
---|---|---|---|---|
Input props | [ "comment" => App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } "level" => 2 "showNested" => true "view" => "tree" ] |
|||
Attributes | [ "showNested" => true ] |
|||
Component | App\Twig\Components\EntryCommentsNestedComponent {#13935 +comment: App\Entity\EntryComment {#4280 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } +entry: App\Entity\Entry {#2412 +user: Proxies\__CG__\App\Entity\User {#1970 …2} +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +image: Proxies\__CG__\App\Entity\Image {#1943 …} +domain: Proxies\__CG__\App\Entity\Domain {#1912 …} +slug: "Shift-register-missing-bits" +title: "Shift register missing bits" +url: "https://discuss.tchncs.de/pictrs/image/7da4f08e-8d93-4cf1-99c9-22f2aea08d32.png" +body: """ Hey friends,\n \n I have a two [daisy chained shift registers](https://i.imgur.com/tZBQ45e.png) ([74AHC595](https://www.diodes.com/assets/Datasheets/74AHC595.pdf)) which are controlled via an ESP32. I want to set one output to high at a time before switching to the next.\n \n The code seems to work, but the outputs O_9 and O_10 are not [staying high](https://i.imgur.com/v5OOE1K.png) ([zoom](https://i.imgur.com/VpMbdW3.png)) after setting them, whereas all the other ones are working fine. This is the used code snipped:\n \n ```\n \n <span style="color:#323232;">pinMode(SHIFT_OUT_DATA, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_CLK, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_N_EN, OUTPUT);\n </span><span style="color:#323232;">pinMode(SHIFT_OUT_LATCH, OUTPUT);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">digitalWrite(SHIFT_OUT_N_EN, LOW);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">uint16_t input_bin = 0b1000000000000000;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;">for(int i=0; i<17; i++){\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> byte upper_byte = input_bin >> 8;\n </span><span style="color:#323232;"> byte lower_byte = input_bin & 0x00FF;\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, LOW);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, lower_byte);\n </span><span style="color:#323232;"> shiftDataOut(SHIFT_OUT_DATA, SHIFT_OUT_CLK, MSBFIRST, upper_byte);\n </span><span style="color:#323232;"> usleep(10);\n </span><span style="color:#323232;"> digitalWrite(SHIFT_OUT_LATCH, HIGH);\n </span><span style="color:#323232;">\n </span><span style="color:#323232;"> delay(10)\n </span><span style="color:#323232;"> input_bin = input_bin>>1;\n </span><span style="color:#323232;">} \n </span>\n ```\n \n Is there anything I’m doing wrong, or any idea on where the problem may lie? I’ve already tried looking for shorts and other error sources, but the design was manufactured on a PCB and no assembly issues are noticeable. """ +type: "image" +lang: "en" +isOc: false +hasEmbed: true +commentCount: 15 +favouriteCount: 13 +score: 0 +isAdult: false +sticky: false +lastActive: DateTime @1695882892 {#2410 : 2023-09-28 08:34:52.0 +02:00 } +ip: null +adaAmount: 0 +tags: null +mentions: null +comments: Doctrine\ORM\PersistentCollection {#1866 …} +votes: Doctrine\ORM\PersistentCollection {#1966 …} +reports: Doctrine\ORM\PersistentCollection {#1946 …} +favourites: Doctrine\ORM\PersistentCollection {#1368 …} +notifications: Doctrine\ORM\PersistentCollection {#2426 …} +badges: Doctrine\ORM\PersistentCollection {#2439 …} +children: [] -id: 2357 -titleTs: "'bit':4 'miss':3 'regist':2 'shift':1" -bodyTs: "'/assets/datasheets/74ahc595.pdf))':17 '/tzbq45e.png)':13 '/v5ooe1k.png)':59 '/vpmbdw3.png))':63 '0':116 '0b1000000000000000':112 '0x00ff':131 '1':170 '10':52,158,165 '17':118 '74ahc595':14 '8':125 '9':49 'alreadi':189 'anyth':173 'assembl':208 'bin':111,124,130,167,169 'byte':120,122,126,128,146,156 'chain':8 'clk':89,143,153 'code':41,79 'control':20 'daisi':7 'data':84,140,150 'delay':164 'design':200 'digitalwrit':102,132,159 'en':95,106 'error':196 'esp32':23 'fine':74 'friend':2 'hey':1 'high':31,56,163 'i.imgur.com':12,58,62 'i.imgur.com/tzbq45e.png)':11 'i.imgur.com/v5ooe1k.png)':57 'i.imgur.com/vpmbdw3.png))':61 'idea':180 'input':110,123,129,166,168 'int':114 'issu':209 'latch':100,135,162 'lie':186 'look':191 'low':107,136 'lower':127,145 'm':175 'manufactur':202 'may':185 'msbfirst':144,154 'n':94,105 'next':39 'notic':211 'o':48,51 'one':28,71 'output':29,47,85,90,96,101 'pcb':205 'pinmod':81,86,91,97 'problem':184 'regist':10 'seem':42 'set':27,65 'shift':9,82,87,92,98,103,133,138,141,148,151,160 'shiftdataout':137,147 'short':193 'snip':80 'sourc':197 'stay':55 'switch':36 'time':34 'tri':190 'two':6 'uint16':108 'upper':121,155 'use':78 'usleep':157 've':188 'via':21 'want':25 'wherea':67 'work':44,73 'wrong':177 'www.diodes.com':16 'www.diodes.com/assets/datasheets/74ahc595.pdf))':15 'zoom':60" +cross: false +upVotes: 0 +downVotes: 0 +ranking: 1695910961 +visibility: "visible " +apId: "https://discuss.tchncs.de/post/3882589" +editedAt: DateTimeImmutable @1695842569 {#1850 : 2023-09-27 21:22:49.0 +02:00 } +createdAt: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } +magazine: App\Entity\Magazine {#266} +image: null +parent: App\Entity\EntryComment {#4258 +user: App\Entity\User {#4197 +avatar: null +cover: null +email: "Kalcifer@lemm.ee" +username: "@Kalcifer@lemm.ee" +roles: [] +followersCount: 0 +homepage: "front" +about: "All of this user’s content is licensed under CC BY 4.0" +lastActive: DateTime @1701887764 {#4181 : 2023-12-06 19:36:04.0 +01: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 {#4198 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#4200 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#4202 …} +entries: Doctrine\ORM\PersistentCollection {#4204 …} +entryVotes: Doctrine\ORM\PersistentCollection {#4206 …} +entryComments: Doctrine\ORM\PersistentCollection {#4208 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#4210 …} +posts: Doctrine\ORM\PersistentCollection {#4212 …} +postVotes: Doctrine\ORM\PersistentCollection {#4214 …} +postComments: Doctrine\ORM\PersistentCollection {#4216 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#4218 …} +subscriptions: Doctrine\ORM\PersistentCollection {#4220 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#4222 …} +follows: Doctrine\ORM\PersistentCollection {#4224 …} +followers: Doctrine\ORM\PersistentCollection {#4226 …} +blocks: Doctrine\ORM\PersistentCollection {#4228 …} +blockers: Doctrine\ORM\PersistentCollection {#4230 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#4232 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#4234 …} +reports: Doctrine\ORM\PersistentCollection {#4236 …} +favourites: Doctrine\ORM\PersistentCollection {#4238 …} +violations: Doctrine\ORM\PersistentCollection {#4240 …} +notifications: Doctrine\ORM\PersistentCollection {#4242 …} +awards: Doctrine\ORM\PersistentCollection {#4244 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#4246 …} +categories: Doctrine\ORM\PersistentCollection {#4248 …} -id: 44806 -password: "$2y$13$fQTQJQLAkJbJWIfxsBKk0uKCIwaW79ogf3lr2L4WYQXbN7p5jZn5q" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#4250 …} +apId: "Kalcifer@lemm.ee" +apProfileId: "https://lemm.ee/u/Kalcifer" +apPublicUrl: "https://lemm.ee/u/Kalcifer" +apFollowersUrl: null +apInboxUrl: "https://lemm.ee/inbox" +apDomain: "lemm.ee" +apPreferredUsername: "Kalcifer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1722822560 {#4182 : 2024-08-05 03:49:20.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693842669 {#4183 : 2023-09-04 17:51:09.0 +02:00 } } +entry: App\Entity\Entry {#2412} +magazine: App\Entity\Magazine {#266} +image: null +parent: null +root: null +body: "Would you not want to shift out the upper byte first? I could be misinterpreting your setup." +lang: "en" +isAdult: false +favouriteCount: 1 +score: 0 +lastActive: DateTime @1695848391 {#4252 : 2023-09-27 22:59:51.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" ] +children: Doctrine\ORM\PersistentCollection {#4259 …} +nested: Doctrine\ORM\PersistentCollection {#4261 …} +votes: Doctrine\ORM\PersistentCollection {#4263 …} +reports: Doctrine\ORM\PersistentCollection {#4265 …} +favourites: Doctrine\ORM\PersistentCollection {#4267 …} +notifications: Doctrine\ORM\PersistentCollection {#4269 …} -id: 29925 -bodyTs: "'byte':10 'could':13 'first':11 'misinterpret':15 'setup':17 'shift':6 'upper':9 'want':4 'would':1" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://lemm.ee/comment/4050427" +editedAt: DateTimeImmutable @1695847279 {#4253 : 2023-09-27 22:41:19.0 +02:00 } +createdAt: DateTimeImmutable @1695847225 {#4254 : 2023-09-27 22:40:25.0 +02:00 } } +root: App\Entity\EntryComment {#4258} +body: "You’re probably right, but that should only change the order of the outputs right?" +lang: "en" +isAdult: false +favouriteCount: 0 +score: 0 +lastActive: DateTime @1695848390 {#4279 : 2023-09-27 22:59:50.0 +02:00 } +ip: null +tags: null +mentions: [ "@quiescentcurrent@discuss.tchncs.de" "@Kalcifer@lemm.ee" ] +children: Doctrine\ORM\PersistentCollection {#4283 …} +nested: Doctrine\ORM\PersistentCollection {#4288 …} +votes: Doctrine\ORM\PersistentCollection {#4284 …} +reports: Doctrine\ORM\PersistentCollection {#4290 …} +favourites: Doctrine\ORM\PersistentCollection {#4292 …} +notifications: Doctrine\ORM\PersistentCollection {#4294 …} -id: 29928 -bodyTs: "'chang':9 'order':11 'output':14 'probabl':3 're':2 'right':4,15" +ranking: 0 +commentCount: 0 +upVotes: 0 +downVotes: 0 +visibility: "visible " +apId: "https://discuss.tchncs.de/comment/3308099" +editedAt: null +createdAt: DateTimeImmutable @1695848390 {#4276 : 2023-09-27 22:59:50.0 +02:00 } } +nestedComments: [] +level: 2 +view: "tree" -entryCommentRepository: App\Repository\EntryCommentRepository {#558 …} -twig: Twig\Environment {#1252 …} -security: Symfony\Bundle\SecurityBundle\Security {#1101 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
settings_row_enum | App\Twig\Components\SettingsRowEnumComponent | 14.0 MiB | 0.22 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 {#14066 +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 | 14.0 MiB | 0.21 ms | |
---|---|---|---|---|
Input props | [ "label" => "Dynamic lists" "settingsKey" => "KBIN_GENERAL_DYNAMIC_LISTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14130 +label: "Dynamic lists" +help: "" +settingsKey: "KBIN_GENERAL_DYNAMIC_LISTS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "label" => "Rounded edges" "settingsKey" => "KBIN_GENERAL_ROUNDED_EDGES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14195 +label: "Rounded edges" +help: "" +settingsKey: "KBIN_GENERAL_ROUNDED_EDGES" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "label" => "Infinite scrolling" "help" => "Automatically load more content when you reach the bottom of the page." "settingsKey" => "KBIN_GENERAL_INFINITE_SCROLL" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14251 +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 | 14.0 MiB | 0.16 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 {#14310 +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 | 14.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show top bar" "settingsKey" => "KBIN_GENERAL_TOPBAR" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14366 +label: "Show top bar" +help: "" +settingsKey: "KBIN_GENERAL_TOPBAR" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.16 ms | |
---|---|---|---|---|
Input props | [ "label" => "Turbo mode (experimental)" "settingsKey" => "KBIN_GENERAL_TURBO" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#9139 +label: "Turbo mode (experimental)" +help: "" +settingsKey: "KBIN_GENERAL_TURBO" +defaultValue: false +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 14.0 MiB | 0.29 ms | |
---|---|---|---|---|
Input props | [ "label" => "Mark new comments" "settingsKey" => "KBIN_MARK_NEW_COMMENTS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#8551 +label: "Mark new comments" +help: "" +settingsKey: "KBIN_MARK_NEW_COMMENTS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.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 {#11673 +label: "Show "Support Us" block" +help: "" +settingsKey: "KBIN_GENERAL_SUPPORT_US_BLOCK" +defaultValue: true +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 14.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed users" "settingsKey" => "KBIN_SUB_CHANNEL_USERS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#14017 +label: "Show subscribed users" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_USERS" +defaultValue: false +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 14.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed magazines" "settingsKey" => "KBIN_SUB_CHANNEL_MAGAZINES" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#14413 +label: "Show subscribed magazines" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_MAGAZINES" +defaultValue: false +reloadRequired: true } |
user_settings_row_switch | App\Twig\Components\UserSettingsRowSwitchComponent | 14.0 MiB | 0.17 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show subscribed domains" "settingsKey" => "KBIN_SUB_CHANNEL_DOMAINS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserSettingsRowSwitchComponent {#14469 +label: "Show subscribed domains" +help: "" +settingsKey: "KBIN_SUB_CHANNEL_DOMAINS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.50 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_ENTRIES_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14525 +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 | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "label" => "Compact view" "settingsKey" => "KBIN_ENTRIES_COMPACT" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14581 +label: "Compact view" +help: "" +settingsKey: "KBIN_ENTRIES_COMPACT" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_ENTRIES_SHOW_USERS_AVATARS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14637 +label: "Show users’ avatars" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_USERS_AVATARS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.19 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show magazines’ icons" "settingsKey" => "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14693 +label: "Show magazines’ icons" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_MAGAZINES_ICONS" +defaultValue: false +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show thumbnails" "settingsKey" => "KBIN_ENTRIES_SHOW_THUMBNAILS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14749 +label: "Show thumbnails" +help: "" +settingsKey: "KBIN_ENTRIES_SHOW_THUMBNAILS" +defaultValue: true +reloadRequired: true } |
settings_row_switch | App\Twig\Components\SettingsRowSwitchComponent | 14.0 MiB | 0.15 ms | |
---|---|---|---|---|
Input props | [ "label" => "Auto media preview" "help" => "Automatically expand media previews." "settingsKey" => "KBIN_POSTS_SHOW_PREVIEW" ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14805 +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 | 14.0 MiB | 0.13 ms | |
---|---|---|---|---|
Input props | [ "label" => "Show users’ avatars" "settingsKey" => "KBIN_POSTS_SHOW_USERS_AVATARS" "defaultValue" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SettingsRowSwitchComponent {#14861 +label: "Show users’ avatars" +help: "" +settingsKey: "KBIN_POSTS_SHOW_USERS_AVATARS" +defaultValue: true +reloadRequired: true } |
settings_row_enum | App\Twig\Components\SettingsRowEnumComponent | 14.0 MiB | 0.17 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 {#14917 +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 | 14.0 MiB | 0.14 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 {#14975 +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 } |
user_actions | App\Twig\Components\UserActionsComponent | 14.0 MiB | 0.48 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserActionsComponent {#15052 +user: Proxies\__CG__\App\Entity\User {#1970 +avatar: null +cover: null +email: "quiescentcurrent@discuss.tchncs.de" +username: "@quiescentcurrent@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: null +lastActive: DateTime @1695882393 {#1519 : 2023-09-28 08:26:33.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 {#1631 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#1713 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#1710 …} +entries: Doctrine\ORM\PersistentCollection {#1742 …} +entryVotes: Doctrine\ORM\PersistentCollection {#1659 …} +entryComments: Doctrine\ORM\PersistentCollection {#1747 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#1473 …} +posts: Doctrine\ORM\PersistentCollection {#1750 …} +postVotes: Doctrine\ORM\PersistentCollection {#1493 …} +postComments: Doctrine\ORM\PersistentCollection {#1778 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#1627 …} +subscriptions: Doctrine\ORM\PersistentCollection {#1755 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#1421 …} +follows: Doctrine\ORM\PersistentCollection {#1447 …} +followers: Doctrine\ORM\PersistentCollection {#1450 …} +blocks: Doctrine\ORM\PersistentCollection {#1462 …} +blockers: Doctrine\ORM\PersistentCollection {#1427 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#1437 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#1430 …} +reports: Doctrine\ORM\PersistentCollection {#1463 …} +favourites: Doctrine\ORM\PersistentCollection {#1699 …} +violations: Doctrine\ORM\PersistentCollection {#1690 …} +notifications: Doctrine\ORM\PersistentCollection {#1696 …} +awards: Doctrine\ORM\PersistentCollection {#1694 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#1743 …} +categories: Doctrine\ORM\PersistentCollection {#1676 …} -id: 47184 -password: "$2y$13$FPJVa./kKdWZpunfjhRHROVKhsfTJleaH2c6QHP32tJilsUZZyBAe" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#1679 …} +apId: "quiescentcurrent@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/quiescentcurrent" +apPublicUrl: "https://discuss.tchncs.de/u/quiescentcurrent" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "quiescentcurrent" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1695882010 {#1515 : 2023-09-28 08:20:10.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1695841462 {#1518 : 2023-09-27 21:04:22.0 +02:00 } +__isInitialized__: true …2 } } |
date | App\Twig\Components\DateComponent | 14.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#15113 +date: DateTimeImmutable @1695841461 {#2420 : 2023-09-27 21:04:21.0 +02:00 } } |
magazine_box | App\Twig\Components\MagazineBoxComponent | 14.0 MiB | 7.55 ms | |
---|---|---|---|---|
Input props | [ "magazine" => App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } "showSectionTitle" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\MagazineBoxComponent {#15169 +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } +showCover: true +showDescription: true +showRules: true +showSubscribeButton: true +showInfo: true +showMeta: true +showSectionTitle: true +stretchedLink: true } |
magazine_sub | App\Twig\Components\MagazineSubComponent | 14.0 MiB | 0.51 ms | |
---|---|---|---|---|
Input props | [ "magazine" => App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\MagazineSubComponent {#15228 +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } } |
date | App\Twig\Components\DateComponent | 14.0 MiB | 0.14 ms | |
---|---|---|---|---|
Input props | [ "date" => DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\DateComponent {#15340 +date: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } |
user_inline | App\Twig\Components\UserInlineComponent | 14.0 MiB | 0.62 ms | |
---|---|---|---|---|
Input props | [ "user" => Proxies\__CG__\App\Entity\User {#15399 +avatar: null +cover: null +email: "kbin@j0h.nl" +username: "Sprite_tm" +roles: [ "ROLE_ADMIN" ] +followersCount: 0 +homepage: "front" +about: "Hi! I'm Sprite_tm. You may know me from sites like https://spritesmods.com." +lastActive: DateTime @1707547382 {#15446 : 2024-02-10 07:43:02.0 +01: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: true +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#15448 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15450 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15452 …} +entries: Doctrine\ORM\PersistentCollection {#15454 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15456 …} +entryComments: Doctrine\ORM\PersistentCollection {#15458 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15460 …} +posts: Doctrine\ORM\PersistentCollection {#15462 …} +postVotes: Doctrine\ORM\PersistentCollection {#15464 …} +postComments: Doctrine\ORM\PersistentCollection {#15466 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15468 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15470 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15472 …} +follows: Doctrine\ORM\PersistentCollection {#15474 …} +followers: Doctrine\ORM\PersistentCollection {#15476 …} +blocks: Doctrine\ORM\PersistentCollection {#15478 …} +blockers: Doctrine\ORM\PersistentCollection {#15480 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15482 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15484 …} +reports: Doctrine\ORM\PersistentCollection {#15486 …} +favourites: Doctrine\ORM\PersistentCollection {#15488 …} +violations: Doctrine\ORM\PersistentCollection {#15490 …} +notifications: Doctrine\ORM\PersistentCollection {#15492 …} +awards: Doctrine\ORM\PersistentCollection {#15494 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15496 …} +categories: Doctrine\ORM\PersistentCollection {#15498 …} -id: 1 -password: "$2y$13$ZX7Aou2QOPRGkHPp4y5x8OWfxZMoT1BGH7bRLlPP7mwZFTkfiaPGG" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15500 …} +apId: null +apProfileId: null +apPublicUrl: null +apFollowersUrl: null +apInboxUrl: null +apDomain: null +apPreferredUsername: null +apDiscoverable: null +apManuallyApprovesFollowers: null +privateKey: """ -----BEGIN PRIVATE KEY-----\r\n MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDleeotz5TBiMlC\r\n YsJYJHVNxjvnvt0qsQA282B7vdqBTbARfD49iKPiMIwgU2yhCI0oTSQwc2Zy9AQ+\r\n 31rwmvBx8VvcLgQvKpNzPVhMQjelK7k5iPiPc/W1soaauepq3YwQKgGod4c5Vh9f\r\n MInSANfOLOUSo3pUzfaQaGEvQc5DbKjDgIjsv/OKI1acbzu067KQzIThu+1BvcqQ\r\n Ypo2Ux5W23nNqkrRZ++z/r1MI2jS3vwi5OSwz4fWhLPJXE6lwokc6b/uAZe7sLT6\r\n QQtjevLnmMyRIVnmxbtHPMSfhLdz8ssQhoNCfAkMnBjDUX31SSs67pU8v5O3Fn2H\r\n d+qFWCjrREwSpBAd24INJqKsjSa6j3oLL8Xw8HZf+x6QRPJch/c3FNWRtM2b9n8V\r\n sAQiD985pafyeQ1TqIe4iSjI0iUgy2WgwO0C1Z0PNbQzQmRk0EOAlxIXjPmB229P\r\n V4+OcZxLT9phP/rid1Qt9Ro+2LdkS9Zqe8c2JHeJKc5Nv/8OOX5uQ/B82JXnuXYi\r\n /oVEJb5t42G8u3IIkYM5G/Gt033WU6dbyKOBmdnbXaPw9LC3M7oop3yyCb3UDLfg\r\n g/XnZVvZxSPCPlh5G1Lb0r47siKq/0k9YRua0AFsVg0dhqfuwsb6G9Hx5EicuPsu\r\n OIjXINBTjlnE4SdMz0ZJt7bLjwlKdQIDAQABAoICAAlWo8QHfYs+sMoF0Njbavam\r\n SYvNxZxWJacW0mdWu4ylh7O+dZ31cI3k4d7y5inLeksYkI90MsgczAtu9XlzJLPO\r\n WamlKcBtoCCBb5Vy4GbVV61SuKLF2krxn+6uAC8nIusJepXLf3JC4fXyuLkWFbIr\r\n O4s9od3Pn+gSh1nv+J/fzSJfmbLgwN1vQLgPAsQDD3o7CHFTP318ZsDnclUhnst0\r\n FQnckzzgWO3fQP7XNg3WyzX0UKYtW97L+bEJE55FQ2Us0gWyhOU7dLH2casztqzc\r\n F/8T91+fzlZAz9OaCAks6Tyb7L2I5KlhtNRF/bU8rAiy6tnVBgLeZG9d3upcQxX0\r\n L+SMPWg55qERGI5mO+BxFdUnVtcmswziKmySYtzgm+c4jmPS5cWhGB9HFCTW2S0x\r\n GoVA2cZGWjMTrbZQhgJjBqzp76fhLtXTufd328sYmX7fBYKEWFYNwrEJaWYUNl/V\r\n yEyl0aMQWKhVokx6eCqnuDZUc77LeuGuCleIdhQ53NYHrXMCmgVyLfmGdrOS3Uh6\r\n RrAYmnvvMkAUTOQajW2csC345PmgBOjE7vB7349ylKUkXvN4L+9xZCYaVjBt3O24\r\n aRoQSQDGhk+NIaYleiFx+u7dJSryxdx/6ut6dQ2S+jKlm1oN1qq6ppO5y/TFRQ1e\r\n qn7kjIGzUT80fANDFqdhAoIBAQD1+cGiWXRQhUrJc5X3ngH1zHoLWpmSZcUUDFn/\r\n bV/CChd2M43fOpneIQETZ1oS7BsU3y92kTw63ytYOUg7C5iT5/r9ZoBGq0HZSbll\r\n riRJWGiajr2aYCmIes++CrfUvCcD6+l8QMZ3s8eXdk80GX+vt1xEfRpWV9e9huJK\r\n K1e8wXfFmPAmxUi63IePscdc+SVQGeooMYDnMwLWvxpAtp5mGOaQc4D5dviWXjSE\r\n Z/PJa+gectpD1iDIPUXm3o17ivE2UYFia8/FCGUN6Yz7ucRKF+2SPO8hLefk5UvJ\r\n Lxlkh67MXKkneDqRU9C82Qmcfz5nQLQadC0nbE44YeXrnlIdAoIBAQDu1AWMIe6f\r\n 7TZYCWnTa3nT6penJ9CMaGDPI/62dKTmGnI4oo3u9DGGrnuWbcFFCQA02vcYdpuw\r\n CVy6mkP/yqN5VSV3EHZiJUA0aKIxot3o3YOiobpVYn9hwvzzOdMZO4SOuevNfY1c\r\n qmnLGhYoDvR1c2yaudCf/BDwQqlLoSg9F5X57bRtwaRyUjhtXVKXWb59qtiwwrvp\r\n 1vPjxciEIxAtgSXtIUQz3ljDRNUHjpyfYM3ska5jkxMIPNYUYFMX2x+Gxn9PZEG3\r\n Im391BRynZsnkvJO6i4i5N1xsPK5SyPiKBnlMxW/6ZLi5aAQHV3cc2KLzV+T+s2B\r\n v9LTAyO7nWo5AoIBAASA/jqqyKZwyl3F8AkIq6CEjfeHQSidFG65iyxSJF65MJTJ\r\n fN+Jgye+Evb3/X47NIO9UnEpV6D8VR7YbaonHDQZG09ogRDKMfp4jxx9g8yUAdZS\r\n psYc3KXTGdqw94y9pTk9KJlN1lR6xjzPvcOGdAATq2zVnZXXJewifCI/iOu73yWP\r\n F1aeZiaFwzWuW6goJ7a/wrnZrjKNjI/CEAj/TwcvjYk3lDT9KLAYKX4DKUOW5jko\r\n gTacxRzlglIn4Q9SC/iipWvX7YX+EVuf2yUA0cdJiOAUnYxN+uEGEc0tP5nHoju7\r\n tp0yZmAi2L+cecCT0+CwHpwdZHZEVWpS4JLf40ECggEBALFSZIgGDZlaU5YL7zHV\r\n Q5APRugKDLKjMPW7IPwxINnj2tioAL/hOQBpfkNTXEM4ipmz1fCo57FNUjcOINzD\r\n hJqqmHWNmIgIZmJDKeG2rhKenYTblXCeADwCvTKNxWmfoi0iZ6ybwqCBuqjcxoSZ\r\n jfHCcGl0+yw9yAnLRM1ta2XopCb70ZIIS2PCHjk9J/xN2ryNY/PhsgnN2ilMiTNq\r\n oTFYCWPF5lCojrj020KQJUPEaUBzbcpqwZ/FI6HfXvKAdCjqKk40/wHNI2Np2oC6\r\n +h7o4NWs0/J+gNhP6/edjZf19DwTsNtbvf6PRUeRtkXeudVY99T0Sy9B0HNxik9b\r\n cikCggEAM2wassiP1i0Gc3wrbNLHyQN+yqMaAp0xF+8l0fU3T8zPL/tYDcITnZPY\r\n pEFV/aodP9X7XFuQD0iGTOTGDXiMSLPOLI/ifmwbT41rgIN9x14MpU2EtWeVz7sx\r\n ZIFMt98rHx6BsZx/DnSFDQ8iqrKF3u+OOv7s6j+8odz4Rq53+16vMev5VUMOPq+E\r\n aQn8SDKkOjZzwb9QGB9bXS5s9yyj4pLyggQ0O5S2ugZjUcmCecNpktN8bUR3I9VQ\r\n KWkcQa9yCpidp/JYrQtlbqAPiIzptA4T4RNh+F6pKbmw7hNMIPipPzbQezEMaBOn\r\n Cgb38EldyAVGjCzRGfhu9SNU9B03bg==\r\n -----END PRIVATE KEY----- """ +publicKey: """ -----BEGIN PUBLIC KEY-----\r\n MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5XnqLc+UwYjJQmLCWCR1\r\n TcY7577dKrEANvNge73agU2wEXw+PYij4jCMIFNsoQiNKE0kMHNmcvQEPt9a8Jrw\r\n cfFb3C4ELyqTcz1YTEI3pSu5OYj4j3P1tbKGmrnqat2MECoBqHeHOVYfXzCJ0gDX\r\n zizlEqN6VM32kGhhL0HOQ2yow4CI7L/ziiNWnG87tOuykMyE4bvtQb3KkGKaNlMe\r\n Vtt5zapK0Wfvs/69TCNo0t78IuTksM+H1oSzyVxOpcKJHOm/7gGXu7C0+kELY3ry\r\n 55jMkSFZ5sW7RzzEn4S3c/LLEIaDQnwJDJwYw1F99UkrOu6VPL+TtxZ9h3fqhVgo\r\n 60RMEqQQHduCDSairI0muo96Cy/F8PB2X/sekETyXIf3NxTVkbTNm/Z/FbAEIg/f\r\n OaWn8nkNU6iHuIkoyNIlIMtloMDtAtWdDzW0M0JkZNBDgJcSF4z5gdtvT1ePjnGc\r\n S0/aYT/64ndULfUaPti3ZEvWanvHNiR3iSnOTb//Djl+bkPwfNiV57l2Iv6FRCW+\r\n beNhvLtyCJGDORvxrdN91lOnW8ijgZnZ212j8PSwtzO6KKd8sgm91Ay34IP152Vb\r\n 2cUjwj5YeRtS29K+O7Iiqv9JPWEbmtABbFYNHYan7sLG+hvR8eRInLj7LjiI1yDQ\r\n U45ZxOEnTM9GSbe2y48JSnUCAwEAAQ==\r\n -----END PUBLIC KEY----- """ +apFetchedAt: null +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1686560440 {#15447 : 2023-06-12 11:00:40.0 +02:00 } +__isInitialized__: true …2 } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserInlineComponent {#15417 +user: Proxies\__CG__\App\Entity\User {#15399 +avatar: null +cover: null +email: "kbin@j0h.nl" +username: "Sprite_tm" +roles: [ "ROLE_ADMIN" ] +followersCount: 0 +homepage: "front" +about: "Hi! I'm Sprite_tm. You may know me from sites like https://spritesmods.com." +lastActive: DateTime @1707547382 {#15446 : 2024-02-10 07:43:02.0 +01: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: true +isDeleted: false +isBot: false +spamProtection: true +customCss: null +ignoreMagazinesCustomCss: false +moderatorTokens: Doctrine\ORM\PersistentCollection {#15448 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15450 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15452 …} +entries: Doctrine\ORM\PersistentCollection {#15454 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15456 …} +entryComments: Doctrine\ORM\PersistentCollection {#15458 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15460 …} +posts: Doctrine\ORM\PersistentCollection {#15462 …} +postVotes: Doctrine\ORM\PersistentCollection {#15464 …} +postComments: Doctrine\ORM\PersistentCollection {#15466 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15468 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15470 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15472 …} +follows: Doctrine\ORM\PersistentCollection {#15474 …} +followers: Doctrine\ORM\PersistentCollection {#15476 …} +blocks: Doctrine\ORM\PersistentCollection {#15478 …} +blockers: Doctrine\ORM\PersistentCollection {#15480 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15482 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15484 …} +reports: Doctrine\ORM\PersistentCollection {#15486 …} +favourites: Doctrine\ORM\PersistentCollection {#15488 …} +violations: Doctrine\ORM\PersistentCollection {#15490 …} +notifications: Doctrine\ORM\PersistentCollection {#15492 …} +awards: Doctrine\ORM\PersistentCollection {#15494 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15496 …} +categories: Doctrine\ORM\PersistentCollection {#15498 …} -id: 1 -password: "$2y$13$ZX7Aou2QOPRGkHPp4y5x8OWfxZMoT1BGH7bRLlPP7mwZFTkfiaPGG" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15500 …} +apId: null +apProfileId: null +apPublicUrl: null +apFollowersUrl: null +apInboxUrl: null +apDomain: null +apPreferredUsername: null +apDiscoverable: null +apManuallyApprovesFollowers: null +privateKey: """ -----BEGIN PRIVATE KEY-----\r\n MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDleeotz5TBiMlC\r\n YsJYJHVNxjvnvt0qsQA282B7vdqBTbARfD49iKPiMIwgU2yhCI0oTSQwc2Zy9AQ+\r\n 31rwmvBx8VvcLgQvKpNzPVhMQjelK7k5iPiPc/W1soaauepq3YwQKgGod4c5Vh9f\r\n MInSANfOLOUSo3pUzfaQaGEvQc5DbKjDgIjsv/OKI1acbzu067KQzIThu+1BvcqQ\r\n Ypo2Ux5W23nNqkrRZ++z/r1MI2jS3vwi5OSwz4fWhLPJXE6lwokc6b/uAZe7sLT6\r\n QQtjevLnmMyRIVnmxbtHPMSfhLdz8ssQhoNCfAkMnBjDUX31SSs67pU8v5O3Fn2H\r\n d+qFWCjrREwSpBAd24INJqKsjSa6j3oLL8Xw8HZf+x6QRPJch/c3FNWRtM2b9n8V\r\n sAQiD985pafyeQ1TqIe4iSjI0iUgy2WgwO0C1Z0PNbQzQmRk0EOAlxIXjPmB229P\r\n V4+OcZxLT9phP/rid1Qt9Ro+2LdkS9Zqe8c2JHeJKc5Nv/8OOX5uQ/B82JXnuXYi\r\n /oVEJb5t42G8u3IIkYM5G/Gt033WU6dbyKOBmdnbXaPw9LC3M7oop3yyCb3UDLfg\r\n g/XnZVvZxSPCPlh5G1Lb0r47siKq/0k9YRua0AFsVg0dhqfuwsb6G9Hx5EicuPsu\r\n OIjXINBTjlnE4SdMz0ZJt7bLjwlKdQIDAQABAoICAAlWo8QHfYs+sMoF0Njbavam\r\n SYvNxZxWJacW0mdWu4ylh7O+dZ31cI3k4d7y5inLeksYkI90MsgczAtu9XlzJLPO\r\n WamlKcBtoCCBb5Vy4GbVV61SuKLF2krxn+6uAC8nIusJepXLf3JC4fXyuLkWFbIr\r\n O4s9od3Pn+gSh1nv+J/fzSJfmbLgwN1vQLgPAsQDD3o7CHFTP318ZsDnclUhnst0\r\n FQnckzzgWO3fQP7XNg3WyzX0UKYtW97L+bEJE55FQ2Us0gWyhOU7dLH2casztqzc\r\n F/8T91+fzlZAz9OaCAks6Tyb7L2I5KlhtNRF/bU8rAiy6tnVBgLeZG9d3upcQxX0\r\n L+SMPWg55qERGI5mO+BxFdUnVtcmswziKmySYtzgm+c4jmPS5cWhGB9HFCTW2S0x\r\n GoVA2cZGWjMTrbZQhgJjBqzp76fhLtXTufd328sYmX7fBYKEWFYNwrEJaWYUNl/V\r\n yEyl0aMQWKhVokx6eCqnuDZUc77LeuGuCleIdhQ53NYHrXMCmgVyLfmGdrOS3Uh6\r\n RrAYmnvvMkAUTOQajW2csC345PmgBOjE7vB7349ylKUkXvN4L+9xZCYaVjBt3O24\r\n aRoQSQDGhk+NIaYleiFx+u7dJSryxdx/6ut6dQ2S+jKlm1oN1qq6ppO5y/TFRQ1e\r\n qn7kjIGzUT80fANDFqdhAoIBAQD1+cGiWXRQhUrJc5X3ngH1zHoLWpmSZcUUDFn/\r\n bV/CChd2M43fOpneIQETZ1oS7BsU3y92kTw63ytYOUg7C5iT5/r9ZoBGq0HZSbll\r\n riRJWGiajr2aYCmIes++CrfUvCcD6+l8QMZ3s8eXdk80GX+vt1xEfRpWV9e9huJK\r\n K1e8wXfFmPAmxUi63IePscdc+SVQGeooMYDnMwLWvxpAtp5mGOaQc4D5dviWXjSE\r\n Z/PJa+gectpD1iDIPUXm3o17ivE2UYFia8/FCGUN6Yz7ucRKF+2SPO8hLefk5UvJ\r\n Lxlkh67MXKkneDqRU9C82Qmcfz5nQLQadC0nbE44YeXrnlIdAoIBAQDu1AWMIe6f\r\n 7TZYCWnTa3nT6penJ9CMaGDPI/62dKTmGnI4oo3u9DGGrnuWbcFFCQA02vcYdpuw\r\n CVy6mkP/yqN5VSV3EHZiJUA0aKIxot3o3YOiobpVYn9hwvzzOdMZO4SOuevNfY1c\r\n qmnLGhYoDvR1c2yaudCf/BDwQqlLoSg9F5X57bRtwaRyUjhtXVKXWb59qtiwwrvp\r\n 1vPjxciEIxAtgSXtIUQz3ljDRNUHjpyfYM3ska5jkxMIPNYUYFMX2x+Gxn9PZEG3\r\n Im391BRynZsnkvJO6i4i5N1xsPK5SyPiKBnlMxW/6ZLi5aAQHV3cc2KLzV+T+s2B\r\n v9LTAyO7nWo5AoIBAASA/jqqyKZwyl3F8AkIq6CEjfeHQSidFG65iyxSJF65MJTJ\r\n fN+Jgye+Evb3/X47NIO9UnEpV6D8VR7YbaonHDQZG09ogRDKMfp4jxx9g8yUAdZS\r\n psYc3KXTGdqw94y9pTk9KJlN1lR6xjzPvcOGdAATq2zVnZXXJewifCI/iOu73yWP\r\n F1aeZiaFwzWuW6goJ7a/wrnZrjKNjI/CEAj/TwcvjYk3lDT9KLAYKX4DKUOW5jko\r\n gTacxRzlglIn4Q9SC/iipWvX7YX+EVuf2yUA0cdJiOAUnYxN+uEGEc0tP5nHoju7\r\n tp0yZmAi2L+cecCT0+CwHpwdZHZEVWpS4JLf40ECggEBALFSZIgGDZlaU5YL7zHV\r\n Q5APRugKDLKjMPW7IPwxINnj2tioAL/hOQBpfkNTXEM4ipmz1fCo57FNUjcOINzD\r\n hJqqmHWNmIgIZmJDKeG2rhKenYTblXCeADwCvTKNxWmfoi0iZ6ybwqCBuqjcxoSZ\r\n jfHCcGl0+yw9yAnLRM1ta2XopCb70ZIIS2PCHjk9J/xN2ryNY/PhsgnN2ilMiTNq\r\n oTFYCWPF5lCojrj020KQJUPEaUBzbcpqwZ/FI6HfXvKAdCjqKk40/wHNI2Np2oC6\r\n +h7o4NWs0/J+gNhP6/edjZf19DwTsNtbvf6PRUeRtkXeudVY99T0Sy9B0HNxik9b\r\n cikCggEAM2wassiP1i0Gc3wrbNLHyQN+yqMaAp0xF+8l0fU3T8zPL/tYDcITnZPY\r\n pEFV/aodP9X7XFuQD0iGTOTGDXiMSLPOLI/ifmwbT41rgIN9x14MpU2EtWeVz7sx\r\n ZIFMt98rHx6BsZx/DnSFDQ8iqrKF3u+OOv7s6j+8odz4Rq53+16vMev5VUMOPq+E\r\n aQn8SDKkOjZzwb9QGB9bXS5s9yyj4pLyggQ0O5S2ugZjUcmCecNpktN8bUR3I9VQ\r\n KWkcQa9yCpidp/JYrQtlbqAPiIzptA4T4RNh+F6pKbmw7hNMIPipPzbQezEMaBOn\r\n Cgb38EldyAVGjCzRGfhu9SNU9B03bg==\r\n -----END PRIVATE KEY----- """ +publicKey: """ -----BEGIN PUBLIC KEY-----\r\n MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5XnqLc+UwYjJQmLCWCR1\r\n TcY7577dKrEANvNge73agU2wEXw+PYij4jCMIFNsoQiNKE0kMHNmcvQEPt9a8Jrw\r\n cfFb3C4ELyqTcz1YTEI3pSu5OYj4j3P1tbKGmrnqat2MECoBqHeHOVYfXzCJ0gDX\r\n zizlEqN6VM32kGhhL0HOQ2yow4CI7L/ziiNWnG87tOuykMyE4bvtQb3KkGKaNlMe\r\n Vtt5zapK0Wfvs/69TCNo0t78IuTksM+H1oSzyVxOpcKJHOm/7gGXu7C0+kELY3ry\r\n 55jMkSFZ5sW7RzzEn4S3c/LLEIaDQnwJDJwYw1F99UkrOu6VPL+TtxZ9h3fqhVgo\r\n 60RMEqQQHduCDSairI0muo96Cy/F8PB2X/sekETyXIf3NxTVkbTNm/Z/FbAEIg/f\r\n OaWn8nkNU6iHuIkoyNIlIMtloMDtAtWdDzW0M0JkZNBDgJcSF4z5gdtvT1ePjnGc\r\n S0/aYT/64ndULfUaPti3ZEvWanvHNiR3iSnOTb//Djl+bkPwfNiV57l2Iv6FRCW+\r\n beNhvLtyCJGDORvxrdN91lOnW8ijgZnZ212j8PSwtzO6KKd8sgm91Ay34IP152Vb\r\n 2cUjwj5YeRtS29K+O7Iiqv9JPWEbmtABbFYNHYan7sLG+hvR8eRInLj7LjiI1yDQ\r\n U45ZxOEnTM9GSbe2y48JSnUCAwEAAQ==\r\n -----END PUBLIC KEY----- """ +apFetchedAt: null +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1686560440 {#15447 : 2023-06-12 11:00:40.0 +02:00 } +__isInitialized__: true …2 } +showAvatar: true } |
related_magazines | App\Twig\Components\RelatedMagazinesComponent | 16.0 MiB | 7.29 ms | |
---|---|---|---|---|
Input props | [ "magazine" => "askelectronics@discuss.tchncs.de" "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedMagazinesComponent {#15608 +limit: 4 +tag: null +magazine: "askelectronics@discuss.tchncs.de" +type: "magazine" +title: "related_magazines" +refreshedRandom: false -repository: App\Repository\MagazineRepository {#334 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
active_users | App\Twig\Components\ActiveUsersComponent | 16.0 MiB | 30.24 ms | |
---|---|---|---|---|
Input props | [ "magazine" => App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\ActiveUsersComponent {#15734 +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } -userRepository: App\Repository\UserRepository {#603 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
user_avatar | App\Twig\Components\UserAvatarComponent | 16.0 MiB | 0.53 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#15866 +avatar: Proxies\__CG__\App\Entity\Image {#15865 …} +cover: null +email: "skillissuer@discuss.tchncs.de" +username: "@skillissuer@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: "i should be writing" +lastActive: DateTime @1721044672 {#15869 : 2024-07-15 13:57:52.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 {#15864 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15862 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15860 …} +entries: Doctrine\ORM\PersistentCollection {#15858 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15856 …} +entryComments: Doctrine\ORM\PersistentCollection {#15854 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15852 …} +posts: Doctrine\ORM\PersistentCollection {#15850 …} +postVotes: Doctrine\ORM\PersistentCollection {#15848 …} +postComments: Doctrine\ORM\PersistentCollection {#15846 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15844 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15842 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15840 …} +follows: Doctrine\ORM\PersistentCollection {#15838 …} +followers: Doctrine\ORM\PersistentCollection {#15836 …} +blocks: Doctrine\ORM\PersistentCollection {#15834 …} +blockers: Doctrine\ORM\PersistentCollection {#15832 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15830 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15828 …} +reports: Doctrine\ORM\PersistentCollection {#15826 …} +favourites: Doctrine\ORM\PersistentCollection {#15824 …} +violations: Doctrine\ORM\PersistentCollection {#15822 …} +notifications: Doctrine\ORM\PersistentCollection {#15820 …} +awards: Doctrine\ORM\PersistentCollection {#15818 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15816 …} +categories: Doctrine\ORM\PersistentCollection {#15814 …} -id: 39464 -password: "$2y$13$wQAP4Gif3ESopfZf00xAU.zwr9iTTX.ev3twB9omsse0v00sxuD/G" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15812 …} +apId: "skillissuer@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/skillissuer" +apPublicUrl: "https://discuss.tchncs.de/u/skillissuer" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "skillissuer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1728245617 {#15868 : 2024-10-06 22:13:37.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1691480767 {#15867 : 2023-08-08 09:46:07.0 +02:00 } } "width" => 65 "height" => 65 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#15790 +width: 65 +height: 65 +user: App\Entity\User {#15866 +avatar: Proxies\__CG__\App\Entity\Image {#15865 …} +cover: null +email: "skillissuer@discuss.tchncs.de" +username: "@skillissuer@discuss.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: "i should be writing" +lastActive: DateTime @1721044672 {#15869 : 2024-07-15 13:57:52.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 {#15864 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15862 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15860 …} +entries: Doctrine\ORM\PersistentCollection {#15858 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15856 …} +entryComments: Doctrine\ORM\PersistentCollection {#15854 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15852 …} +posts: Doctrine\ORM\PersistentCollection {#15850 …} +postVotes: Doctrine\ORM\PersistentCollection {#15848 …} +postComments: Doctrine\ORM\PersistentCollection {#15846 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15844 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15842 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15840 …} +follows: Doctrine\ORM\PersistentCollection {#15838 …} +followers: Doctrine\ORM\PersistentCollection {#15836 …} +blocks: Doctrine\ORM\PersistentCollection {#15834 …} +blockers: Doctrine\ORM\PersistentCollection {#15832 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15830 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15828 …} +reports: Doctrine\ORM\PersistentCollection {#15826 …} +favourites: Doctrine\ORM\PersistentCollection {#15824 …} +violations: Doctrine\ORM\PersistentCollection {#15822 …} +notifications: Doctrine\ORM\PersistentCollection {#15820 …} +awards: Doctrine\ORM\PersistentCollection {#15818 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15816 …} +categories: Doctrine\ORM\PersistentCollection {#15814 …} -id: 39464 -password: "$2y$13$wQAP4Gif3ESopfZf00xAU.zwr9iTTX.ev3twB9omsse0v00sxuD/G" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15812 …} +apId: "skillissuer@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/u/skillissuer" +apPublicUrl: "https://discuss.tchncs.de/u/skillissuer" +apFollowersUrl: null +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "skillissuer" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1728245617 {#15868 : 2024-10-06 22:13:37.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1691480767 {#15867 : 2023-08-08 09:46:07.0 +02:00 } } +asLink: true } |
user_avatar | App\Twig\Components\UserAvatarComponent | 16.0 MiB | 0.40 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#15807 +avatar: Proxies\__CG__\App\Entity\Image {#15806 …} +cover: Proxies\__CG__\App\Entity\Image {#15805 …} +email: "vfrmedia@social.tchncs.de" +username: "@vfrmedia@social.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: """ Old roaming Tom Cat (zwerfkater) but still young at heart. Toots EN, (NL,FR,DE). [#DevOpa](https://social.tchncs.de/tags/DevOpa) - interested more in retro tech / culture / aesthetics than new stuff. Also transport and public infrastructure in general (with a UK/European focus)\n \n Welcome to the secret goose shed!\n \n Avatar is a tabby point Siamese cat - header picture is a Stentor FM radio transmitter designed in the Netherlands; popular with small pirate radio broadcasters in late 1980s """ +lastActive: DateTime @1692636225 {#15810 : 2023-08-21 18:43:45.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 {#15804 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15802 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15752 …} +entries: Doctrine\ORM\PersistentCollection {#15754 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15761 …} +entryComments: Doctrine\ORM\PersistentCollection {#15762 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15764 …} +posts: Doctrine\ORM\PersistentCollection {#15766 …} +postVotes: Doctrine\ORM\PersistentCollection {#15763 …} +postComments: Doctrine\ORM\PersistentCollection {#15756 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15774 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15771 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15779 …} +follows: Doctrine\ORM\PersistentCollection {#15776 …} +followers: Doctrine\ORM\PersistentCollection {#15784 …} +blocks: Doctrine\ORM\PersistentCollection {#15786 …} +blockers: Doctrine\ORM\PersistentCollection {#15788 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#16196 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#16190 …} +reports: Doctrine\ORM\PersistentCollection {#16003 …} +favourites: Doctrine\ORM\PersistentCollection {#15992 …} +violations: Doctrine\ORM\PersistentCollection {#16198 …} +notifications: Doctrine\ORM\PersistentCollection {#16197 …} +awards: Doctrine\ORM\PersistentCollection {#16194 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#16191 …} +categories: Doctrine\ORM\PersistentCollection {#16188 …} -id: 41651 -password: "$2y$13$MR/jvQLw20snj7dhCUOzrerIeJOUi.vmMEXqlAliA6M/KYuWQH.Sa" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#16187 …} +apId: "vfrmedia@social.tchncs.de" +apProfileId: "https://social.tchncs.de/users/vfrmedia" +apPublicUrl: "https://social.tchncs.de/@vfrmedia" +apFollowersUrl: "https://social.tchncs.de/users/vfrmedia/followers" +apInboxUrl: "https://social.tchncs.de/inbox" +apDomain: "social.tchncs.de" +apPreferredUsername: "vfrmedia" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692636225 {#15809 : 2023-08-21 18:43:45.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692554254 {#15808 : 2023-08-20 19:57:34.0 +02:00 } } "width" => 65 "height" => 65 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#16070 +width: 65 +height: 65 +user: App\Entity\User {#15807 +avatar: Proxies\__CG__\App\Entity\Image {#15806 …} +cover: Proxies\__CG__\App\Entity\Image {#15805 …} +email: "vfrmedia@social.tchncs.de" +username: "@vfrmedia@social.tchncs.de" +roles: [] +followersCount: 0 +homepage: "front" +about: """ Old roaming Tom Cat (zwerfkater) but still young at heart. Toots EN, (NL,FR,DE). [#DevOpa](https://social.tchncs.de/tags/DevOpa) - interested more in retro tech / culture / aesthetics than new stuff. Also transport and public infrastructure in general (with a UK/European focus)\n \n Welcome to the secret goose shed!\n \n Avatar is a tabby point Siamese cat - header picture is a Stentor FM radio transmitter designed in the Netherlands; popular with small pirate radio broadcasters in late 1980s """ +lastActive: DateTime @1692636225 {#15810 : 2023-08-21 18:43:45.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 {#15804 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15802 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15752 …} +entries: Doctrine\ORM\PersistentCollection {#15754 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15761 …} +entryComments: Doctrine\ORM\PersistentCollection {#15762 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15764 …} +posts: Doctrine\ORM\PersistentCollection {#15766 …} +postVotes: Doctrine\ORM\PersistentCollection {#15763 …} +postComments: Doctrine\ORM\PersistentCollection {#15756 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15774 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15771 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15779 …} +follows: Doctrine\ORM\PersistentCollection {#15776 …} +followers: Doctrine\ORM\PersistentCollection {#15784 …} +blocks: Doctrine\ORM\PersistentCollection {#15786 …} +blockers: Doctrine\ORM\PersistentCollection {#15788 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#16196 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#16190 …} +reports: Doctrine\ORM\PersistentCollection {#16003 …} +favourites: Doctrine\ORM\PersistentCollection {#15992 …} +violations: Doctrine\ORM\PersistentCollection {#16198 …} +notifications: Doctrine\ORM\PersistentCollection {#16197 …} +awards: Doctrine\ORM\PersistentCollection {#16194 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#16191 …} +categories: Doctrine\ORM\PersistentCollection {#16188 …} -id: 41651 -password: "$2y$13$MR/jvQLw20snj7dhCUOzrerIeJOUi.vmMEXqlAliA6M/KYuWQH.Sa" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#16187 …} +apId: "vfrmedia@social.tchncs.de" +apProfileId: "https://social.tchncs.de/users/vfrmedia" +apPublicUrl: "https://social.tchncs.de/@vfrmedia" +apFollowersUrl: "https://social.tchncs.de/users/vfrmedia/followers" +apInboxUrl: "https://social.tchncs.de/inbox" +apDomain: "social.tchncs.de" +apPreferredUsername: "vfrmedia" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1692636225 {#15809 : 2023-08-21 18:43:45.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1692554254 {#15808 : 2023-08-20 19:57:34.0 +02:00 } } +asLink: true } |
user_avatar | App\Twig\Components\UserAvatarComponent | 16.0 MiB | 0.39 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#15925 +avatar: Proxies\__CG__\App\Entity\Image {#15924 …} +cover: null +email: "birdcat@lemmy.ml" +username: "@birdcat@lemmy.ml" +roles: [] +followersCount: 0 +homepage: "front" +about: """ Appreciate and upvote every reply to my comments/posts if I can detect any effort being put into it; even if I think you completely missed what I tried to say or strongly disagree with your opinion.\n \n Occasionally I cannot resist shitposting, hyperbolic, ironic, sarcastic or populist rhetoric; no /s """ +lastActive: DateTime @1696696022 {#15928 : 2023-10-07 18:27:02.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 {#15923 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15921 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15919 …} +entries: Doctrine\ORM\PersistentCollection {#15917 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15915 …} +entryComments: Doctrine\ORM\PersistentCollection {#15913 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15911 …} +posts: Doctrine\ORM\PersistentCollection {#15909 …} +postVotes: Doctrine\ORM\PersistentCollection {#15907 …} +postComments: Doctrine\ORM\PersistentCollection {#15905 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15903 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15901 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15899 …} +follows: Doctrine\ORM\PersistentCollection {#15897 …} +followers: Doctrine\ORM\PersistentCollection {#15895 …} +blocks: Doctrine\ORM\PersistentCollection {#15893 …} +blockers: Doctrine\ORM\PersistentCollection {#15891 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15889 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15887 …} +reports: Doctrine\ORM\PersistentCollection {#15885 …} +favourites: Doctrine\ORM\PersistentCollection {#15883 …} +violations: Doctrine\ORM\PersistentCollection {#15881 …} +notifications: Doctrine\ORM\PersistentCollection {#15879 …} +awards: Doctrine\ORM\PersistentCollection {#15877 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15875 …} +categories: Doctrine\ORM\PersistentCollection {#15873 …} -id: 21796 -password: "$2y$13$ACNmoGKWwRgm/Njn146GG.b25O8.XXYtlu6ZukGNMl7KWiROcYuzK" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15871 …} +apId: "birdcat@lemmy.ml" +apProfileId: "https://lemmy.ml/u/birdcat" +apPublicUrl: "https://lemmy.ml/u/birdcat" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ml/inbox" +apDomain: "lemmy.ml" +apPreferredUsername: "birdcat" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1719824521 {#15927 : 2024-07-01 11:02:01.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1689039812 {#15926 : 2023-07-11 03:43:32.0 +02:00 } } "width" => 65 "height" => 65 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#16015 +width: 65 +height: 65 +user: App\Entity\User {#15925 +avatar: Proxies\__CG__\App\Entity\Image {#15924 …} +cover: null +email: "birdcat@lemmy.ml" +username: "@birdcat@lemmy.ml" +roles: [] +followersCount: 0 +homepage: "front" +about: """ Appreciate and upvote every reply to my comments/posts if I can detect any effort being put into it; even if I think you completely missed what I tried to say or strongly disagree with your opinion.\n \n Occasionally I cannot resist shitposting, hyperbolic, ironic, sarcastic or populist rhetoric; no /s """ +lastActive: DateTime @1696696022 {#15928 : 2023-10-07 18:27:02.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 {#15923 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15921 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15919 …} +entries: Doctrine\ORM\PersistentCollection {#15917 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15915 …} +entryComments: Doctrine\ORM\PersistentCollection {#15913 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15911 …} +posts: Doctrine\ORM\PersistentCollection {#15909 …} +postVotes: Doctrine\ORM\PersistentCollection {#15907 …} +postComments: Doctrine\ORM\PersistentCollection {#15905 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15903 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15901 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15899 …} +follows: Doctrine\ORM\PersistentCollection {#15897 …} +followers: Doctrine\ORM\PersistentCollection {#15895 …} +blocks: Doctrine\ORM\PersistentCollection {#15893 …} +blockers: Doctrine\ORM\PersistentCollection {#15891 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15889 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15887 …} +reports: Doctrine\ORM\PersistentCollection {#15885 …} +favourites: Doctrine\ORM\PersistentCollection {#15883 …} +violations: Doctrine\ORM\PersistentCollection {#15881 …} +notifications: Doctrine\ORM\PersistentCollection {#15879 …} +awards: Doctrine\ORM\PersistentCollection {#15877 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15875 …} +categories: Doctrine\ORM\PersistentCollection {#15873 …} -id: 21796 -password: "$2y$13$ACNmoGKWwRgm/Njn146GG.b25O8.XXYtlu6ZukGNMl7KWiROcYuzK" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15871 …} +apId: "birdcat@lemmy.ml" +apProfileId: "https://lemmy.ml/u/birdcat" +apPublicUrl: "https://lemmy.ml/u/birdcat" +apFollowersUrl: null +apInboxUrl: "https://lemmy.ml/inbox" +apDomain: "lemmy.ml" +apPreferredUsername: "birdcat" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1719824521 {#15927 : 2024-07-01 11:02:01.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1689039812 {#15926 : 2023-07-11 03:43:32.0 +02:00 } } +asLink: true } |
user_avatar | App\Twig\Components\UserAvatarComponent | 16.0 MiB | 0.37 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#15984 +avatar: Proxies\__CG__\App\Entity\Image {#15983 …} +cover: null +email: "jarrodsfarrell@hoosier.social" +username: "@jarrodsfarrell@hoosier.social" +roles: [] +followersCount: 0 +homepage: "front" +about: """ Grounded tech enthusiast, Linux enjoyer, and Indy 500 wannabe that lives in south-east Indiana. \n Go pride. [#LGBTQ](https://hoosier.social/tags/LGBTQ) """ +lastActive: DateTime @1690728142 {#15987 : 2023-07-30 16:42:22.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 {#15982 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15980 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15978 …} +entries: Doctrine\ORM\PersistentCollection {#15976 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15974 …} +entryComments: Doctrine\ORM\PersistentCollection {#15972 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15970 …} +posts: Doctrine\ORM\PersistentCollection {#15968 …} +postVotes: Doctrine\ORM\PersistentCollection {#15966 …} +postComments: Doctrine\ORM\PersistentCollection {#15964 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15962 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15960 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15958 …} +follows: Doctrine\ORM\PersistentCollection {#15956 …} +followers: Doctrine\ORM\PersistentCollection {#15954 …} +blocks: Doctrine\ORM\PersistentCollection {#15952 …} +blockers: Doctrine\ORM\PersistentCollection {#15950 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15948 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15946 …} +reports: Doctrine\ORM\PersistentCollection {#15944 …} +favourites: Doctrine\ORM\PersistentCollection {#15942 …} +violations: Doctrine\ORM\PersistentCollection {#15940 …} +notifications: Doctrine\ORM\PersistentCollection {#15938 …} +awards: Doctrine\ORM\PersistentCollection {#15936 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15934 …} +categories: Doctrine\ORM\PersistentCollection {#15932 …} -id: 20657 -password: "$2y$13$XNERcrvg1/EZkZQbKQ6R6efd5bjo3rlAJRSz0lDRnfkNCV76hr5Me" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15930 …} +apId: "jarrodsfarrell@hoosier.social" +apProfileId: "https://hoosier.social/users/jarrodsfarrell" +apPublicUrl: "https://hoosier.social/@jarrodsfarrell" +apFollowersUrl: "https://hoosier.social/users/jarrodsfarrell/followers" +apInboxUrl: "https://hoosier.social/inbox" +apDomain: "hoosier.social" +apPreferredUsername: "jarrodsfarrell" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1690726862 {#15986 : 2023-07-30 16:21:02.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688878027 {#15985 : 2023-07-09 06:47:07.0 +02:00 } } "width" => 65 "height" => 65 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#16241 +width: 65 +height: 65 +user: App\Entity\User {#15984 +avatar: Proxies\__CG__\App\Entity\Image {#15983 …} +cover: null +email: "jarrodsfarrell@hoosier.social" +username: "@jarrodsfarrell@hoosier.social" +roles: [] +followersCount: 0 +homepage: "front" +about: """ Grounded tech enthusiast, Linux enjoyer, and Indy 500 wannabe that lives in south-east Indiana. \n Go pride. [#LGBTQ](https://hoosier.social/tags/LGBTQ) """ +lastActive: DateTime @1690728142 {#15987 : 2023-07-30 16:42:22.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 {#15982 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#15980 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#15978 …} +entries: Doctrine\ORM\PersistentCollection {#15976 …} +entryVotes: Doctrine\ORM\PersistentCollection {#15974 …} +entryComments: Doctrine\ORM\PersistentCollection {#15972 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#15970 …} +posts: Doctrine\ORM\PersistentCollection {#15968 …} +postVotes: Doctrine\ORM\PersistentCollection {#15966 …} +postComments: Doctrine\ORM\PersistentCollection {#15964 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#15962 …} +subscriptions: Doctrine\ORM\PersistentCollection {#15960 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#15958 …} +follows: Doctrine\ORM\PersistentCollection {#15956 …} +followers: Doctrine\ORM\PersistentCollection {#15954 …} +blocks: Doctrine\ORM\PersistentCollection {#15952 …} +blockers: Doctrine\ORM\PersistentCollection {#15950 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#15948 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#15946 …} +reports: Doctrine\ORM\PersistentCollection {#15944 …} +favourites: Doctrine\ORM\PersistentCollection {#15942 …} +violations: Doctrine\ORM\PersistentCollection {#15940 …} +notifications: Doctrine\ORM\PersistentCollection {#15938 …} +awards: Doctrine\ORM\PersistentCollection {#15936 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#15934 …} +categories: Doctrine\ORM\PersistentCollection {#15932 …} -id: 20657 -password: "$2y$13$XNERcrvg1/EZkZQbKQ6R6efd5bjo3rlAJRSz0lDRnfkNCV76hr5Me" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#15930 …} +apId: "jarrodsfarrell@hoosier.social" +apProfileId: "https://hoosier.social/users/jarrodsfarrell" +apPublicUrl: "https://hoosier.social/@jarrodsfarrell" +apFollowersUrl: "https://hoosier.social/users/jarrodsfarrell/followers" +apInboxUrl: "https://hoosier.social/inbox" +apDomain: "hoosier.social" +apPreferredUsername: "jarrodsfarrell" +apDiscoverable: false +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1690726862 {#15986 : 2023-07-30 16:21:02.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1688878027 {#15985 : 2023-07-09 06:47:07.0 +02:00 } } +asLink: true } |
user_avatar | App\Twig\Components\UserAvatarComponent | 16.0 MiB | 0.35 ms | |
---|---|---|---|---|
Input props | [ "user" => App\Entity\User {#16181 +avatar: Proxies\__CG__\App\Entity\Image {#16178 …} +cover: Proxies\__CG__\App\Entity\Image {#16179 …} +email: "TCB13@lemmy.world" +username: "@TCB13@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: "" +lastActive: DateTime @1729518803 {#16001 : 2024-10-21 15:53: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: 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 {#16176 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#16174 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#16172 …} +entries: Doctrine\ORM\PersistentCollection {#16170 …} +entryVotes: Doctrine\ORM\PersistentCollection {#16168 …} +entryComments: Doctrine\ORM\PersistentCollection {#16166 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#16164 …} +posts: Doctrine\ORM\PersistentCollection {#16162 …} +postVotes: Doctrine\ORM\PersistentCollection {#16160 …} +postComments: Doctrine\ORM\PersistentCollection {#16158 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#16156 …} +subscriptions: Doctrine\ORM\PersistentCollection {#16154 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#16152 …} +follows: Doctrine\ORM\PersistentCollection {#16150 …} +followers: Doctrine\ORM\PersistentCollection {#16148 …} +blocks: Doctrine\ORM\PersistentCollection {#16146 …} +blockers: Doctrine\ORM\PersistentCollection {#16144 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#16142 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#16140 …} +reports: Doctrine\ORM\PersistentCollection {#16138 …} +favourites: Doctrine\ORM\PersistentCollection {#16136 …} +violations: Doctrine\ORM\PersistentCollection {#16134 …} +notifications: Doctrine\ORM\PersistentCollection {#16132 …} +awards: Doctrine\ORM\PersistentCollection {#16130 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#16128 …} +categories: Doctrine\ORM\PersistentCollection {#16126 …} -id: 43677 -password: "$2y$13$67WvGuLt4FPbc4trvxnH0ODZHTvTlMWI7kaafAJZUzYiSsXw.KDqi" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#16124 …} +apId: "TCB13@lemmy.world" +apProfileId: "https://lemmy.world/u/TCB13" +apPublicUrl: "https://lemmy.world/u/TCB13" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "TCB13" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729566764 {#16182 : 2024-10-22 05:12:44.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693492241 {#16180 : 2023-08-31 16:30:41.0 +02:00 } } "width" => 65 "height" => 65 "asLink" => true ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\UserAvatarComponent {#16298 +width: 65 +height: 65 +user: App\Entity\User {#16181 +avatar: Proxies\__CG__\App\Entity\Image {#16178 …} +cover: Proxies\__CG__\App\Entity\Image {#16179 …} +email: "TCB13@lemmy.world" +username: "@TCB13@lemmy.world" +roles: [] +followersCount: 0 +homepage: "front" +about: "" +lastActive: DateTime @1729518803 {#16001 : 2024-10-21 15:53: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: 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 {#16176 …} +magazineOwnershipRequests: Doctrine\ORM\PersistentCollection {#16174 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#16172 …} +entries: Doctrine\ORM\PersistentCollection {#16170 …} +entryVotes: Doctrine\ORM\PersistentCollection {#16168 …} +entryComments: Doctrine\ORM\PersistentCollection {#16166 …} +entryCommentVotes: Doctrine\ORM\PersistentCollection {#16164 …} +posts: Doctrine\ORM\PersistentCollection {#16162 …} +postVotes: Doctrine\ORM\PersistentCollection {#16160 …} +postComments: Doctrine\ORM\PersistentCollection {#16158 …} +postCommentVotes: Doctrine\ORM\PersistentCollection {#16156 …} +subscriptions: Doctrine\ORM\PersistentCollection {#16154 …} +subscribedDomains: Doctrine\ORM\PersistentCollection {#16152 …} +follows: Doctrine\ORM\PersistentCollection {#16150 …} +followers: Doctrine\ORM\PersistentCollection {#16148 …} +blocks: Doctrine\ORM\PersistentCollection {#16146 …} +blockers: Doctrine\ORM\PersistentCollection {#16144 …} +blockedMagazines: Doctrine\ORM\PersistentCollection {#16142 …} +blockedDomains: Doctrine\ORM\PersistentCollection {#16140 …} +reports: Doctrine\ORM\PersistentCollection {#16138 …} +favourites: Doctrine\ORM\PersistentCollection {#16136 …} +violations: Doctrine\ORM\PersistentCollection {#16134 …} +notifications: Doctrine\ORM\PersistentCollection {#16132 …} +awards: Doctrine\ORM\PersistentCollection {#16130 …} +subscribedCategories: Doctrine\ORM\PersistentCollection {#16128 …} +categories: Doctrine\ORM\PersistentCollection {#16126 …} -id: 43677 -password: "$2y$13$67WvGuLt4FPbc4trvxnH0ODZHTvTlMWI7kaafAJZUzYiSsXw.KDqi" -totpSecret: null -totpBackupCodes: [] -oAuth2UserConsents: Doctrine\ORM\PersistentCollection {#16124 …} +apId: "TCB13@lemmy.world" +apProfileId: "https://lemmy.world/u/TCB13" +apPublicUrl: "https://lemmy.world/u/TCB13" +apFollowersUrl: null +apInboxUrl: "https://lemmy.world/inbox" +apDomain: "lemmy.world" +apPreferredUsername: "TCB13" +apDiscoverable: true +apManuallyApprovesFollowers: false +privateKey: null +publicKey: null +apFetchedAt: DateTime @1729566764 {#16182 : 2024-10-22 05:12:44.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1693492241 {#16180 : 2023-08-31 16:30:41.0 +02:00 } } +asLink: true } |
related_categories | App\Twig\Components\RelatedCategoriesComponent | 16.0 MiB | 3.22 ms | |
---|---|---|---|---|
Input props | [ "magazine" => "askelectronics@discuss.tchncs.de" "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedCategoriesComponent {#16360 +limit: 4 +tag: null +magazine: "askelectronics@discuss.tchncs.de" +type: "related" +title: "related_categories" +refreshedRandom: false -repository: App\Repository\CategoryRepository {#16361 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} } |
related_posts | App\Twig\Components\RelatedPostsComponent | 16.0 MiB | 1.51 ms | |
---|---|---|---|---|
Input props | [ "magazine" => "askelectronics@discuss.tchncs.de" "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedPostsComponent {#16437 +limit: 4 +tag: null +magazine: "askelectronics@discuss.tchncs.de" +type: "magazine" +post: null +title: "related_posts" +refreshedRandom: false -repository: App\Repository\PostRepository {#16438 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#390 …} } |
related_entries | App\Twig\Components\RelatedEntriesComponent | 16.0 MiB | 1.39 ms | |
---|---|---|---|---|
Input props | [ "magazine" => "askelectronics@discuss.tchncs.de" "tag" => null ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\RelatedEntriesComponent {#16510 +limit: 4 +tag: null +magazine: "askelectronics@discuss.tchncs.de" +type: "magazine" +entry: null +title: "related_entries" +refreshedRandom: false -repository: App\Repository\EntryRepository {#271 …} -cache: Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter {#600 …} -twig: Twig\Environment {#1252 …} -requestStack: Symfony\Component\HttpFoundation\RequestStack {#1328 …} -mentionManager: App\Service\MentionManager {#390 …} } |
support_us_block | App\Twig\Components\SupportUsBlock | 16.0 MiB | 0.22 ms | |
---|---|---|---|---|
Input props | [] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\SupportUsBlock {#16579 +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 {#16580 …} } |
featured_magazines | App\Twig\Components\FeaturedMagazinesComponent | 16.0 MiB | 2.72 ms | |
---|---|---|---|---|
Input props | [ "magazine" => App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } ] |
|||
Attributes | [] |
|||
Component | App\Twig\Components\FeaturedMagazinesComponent {#16668 +magazine: App\Entity\Magazine {#266 +icon: Proxies\__CG__\App\Entity\Image {#247 …} +name: "askelectronics@discuss.tchncs.de" +title: "askelectronics" +description: """ **For questions about component-level electronic circuits, tools and equipment.**\n \n Rules\n -----\n \n 1: Be nice.\n \n 2: Be on-topic (eg: *Electronic*, not *electrical*).\n \n 3: No commercial stuff, buying, selling or valuations.\n \n 4: Be safe.\n \n --- """ +rules: null +subscriptionsCount: 1 +entryCount: 154 +entryCommentCount: 1230 +postCount: 1 +postCommentCount: 4 +isAdult: false +customCss: null +lastActive: DateTime @1729413608 {#276 : 2024-10-20 10:40:08.0 +02:00 } +markedForDeletionAt: null +tags: null +moderators: Doctrine\ORM\PersistentCollection {#238 …} +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …} +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …} +entries: Doctrine\ORM\PersistentCollection {#181 …} +posts: Doctrine\ORM\PersistentCollection {#139 …} +subscriptions: Doctrine\ORM\PersistentCollection {#201 …} +bans: Doctrine\ORM\PersistentCollection {#118 …} +reports: Doctrine\ORM\PersistentCollection {#104 …} +badges: Doctrine\ORM\PersistentCollection {#82 …} +logs: Doctrine\ORM\PersistentCollection {#72 …} +awards: Doctrine\ORM\PersistentCollection {#61 …} +categories: Doctrine\ORM\PersistentCollection {#1820 …} -id: 11 +apId: "askelectronics@discuss.tchncs.de" +apProfileId: "https://discuss.tchncs.de/c/askelectronics" +apPublicUrl: "https://discuss.tchncs.de/c/askelectronics" +apFollowersUrl: "https://discuss.tchncs.de/c/askelectronics/followers" +apInboxUrl: "https://discuss.tchncs.de/inbox" +apDomain: "discuss.tchncs.de" +apPreferredUsername: "askelectronics" +apDiscoverable: true +apManuallyApprovesFollowers: null +privateKey: null +publicKey: null +apFetchedAt: DateTime @1727247714 {#270 : 2024-09-25 09:01:54.0 +02:00 } +apDeletedAt: null +apTimeoutAt: null +visibility: "visible " +createdAt: DateTimeImmutable @1687144409 {#272 : 2023-06-19 05:13:29.0 +02:00 } } -twig: Twig\Environment {#1252 …} -repository: App\Repository\MagazineRepository {#334 …} } |