1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#1432
+user: App\Entity\User {#260 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: Proxies\__CG__\App\Entity\Image {#1677 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1552 …}
+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 {#1638
date: 2023-09-28 08:34:52.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1590 …}
+votes: Doctrine\ORM\PersistentCollection {#1593 …}
+reports: Doctrine\ORM\PersistentCollection {#1743 …}
+favourites: Doctrine\ORM\PersistentCollection {#1527 …}
+notifications: Doctrine\ORM\PersistentCollection {#1560 …}
+badges: Doctrine\ORM\PersistentCollection {#1558 …}
+children: [
App\Entity\EntryComment {#1611
+user: App\Entity\User {#260 …}
+entry: App\Entity\Entry {#1432}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+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 {#1596
date: 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 {#2464 …}
+nested: Doctrine\ORM\PersistentCollection {#1740 …}
+votes: Doctrine\ORM\PersistentCollection {#1739 …}
+reports: Doctrine\ORM\PersistentCollection {#1716 …}
+favourites: Doctrine\ORM\PersistentCollection {#2461 …}
+notifications: Doctrine\ORM\PersistentCollection {#2447 …}
-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 {#1555
date: 2023-09-27 22:59:50.0 +02:00
}
+"title": 29928
}
]
-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 {#1643
date: 2023-09-27 21:22:49.0 +02:00
}
+createdAt: DateTimeImmutable @1695841461 {#1627
date: 2023-09-27 21:04:21.0 +02:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#1432
+user: App\Entity\User {#260 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: Proxies\__CG__\App\Entity\Image {#1677 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1552 …}
+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 {#1638
date: 2023-09-28 08:34:52.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1590 …}
+votes: Doctrine\ORM\PersistentCollection {#1593 …}
+reports: Doctrine\ORM\PersistentCollection {#1743 …}
+favourites: Doctrine\ORM\PersistentCollection {#1527 …}
+notifications: Doctrine\ORM\PersistentCollection {#1560 …}
+badges: Doctrine\ORM\PersistentCollection {#1558 …}
+children: [
App\Entity\EntryComment {#1611
+user: App\Entity\User {#260 …}
+entry: App\Entity\Entry {#1432}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+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 {#1596
date: 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 {#2464 …}
+nested: Doctrine\ORM\PersistentCollection {#1740 …}
+votes: Doctrine\ORM\PersistentCollection {#1739 …}
+reports: Doctrine\ORM\PersistentCollection {#1716 …}
+favourites: Doctrine\ORM\PersistentCollection {#2461 …}
+notifications: Doctrine\ORM\PersistentCollection {#2447 …}
-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 {#1555
date: 2023-09-27 22:59:50.0 +02:00
}
+"title": 29928
}
]
-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 {#1643
date: 2023-09-27 21:22:49.0 +02:00
}
+createdAt: DateTimeImmutable @1695841461 {#1627
date: 2023-09-27 21:04:21.0 +02:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#1432
+user: App\Entity\User {#260 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: Proxies\__CG__\App\Entity\Image {#1677 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1552 …}
+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 {#1638
date: 2023-09-28 08:34:52.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1590 …}
+votes: Doctrine\ORM\PersistentCollection {#1593 …}
+reports: Doctrine\ORM\PersistentCollection {#1743 …}
+favourites: Doctrine\ORM\PersistentCollection {#1527 …}
+notifications: Doctrine\ORM\PersistentCollection {#1560 …}
+badges: Doctrine\ORM\PersistentCollection {#1558 …}
+children: [
App\Entity\EntryComment {#1611
+user: App\Entity\User {#260 …}
+entry: App\Entity\Entry {#1432}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+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 {#1596
date: 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 {#2464 …}
+nested: Doctrine\ORM\PersistentCollection {#1740 …}
+votes: Doctrine\ORM\PersistentCollection {#1739 …}
+reports: Doctrine\ORM\PersistentCollection {#1716 …}
+favourites: Doctrine\ORM\PersistentCollection {#2461 …}
+notifications: Doctrine\ORM\PersistentCollection {#2447 …}
-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 {#1555
date: 2023-09-27 22:59:50.0 +02:00
}
+"title": 29928
}
]
-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 {#1643
date: 2023-09-27 21:22:49.0 +02:00
}
+createdAt: DateTimeImmutable @1695841461 {#1627
date: 2023-09-27 21:04:21.0 +02:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1611
+user: App\Entity\User {#260 …}
+entry: App\Entity\Entry {#1432
+user: App\Entity\User {#260 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: Proxies\__CG__\App\Entity\Image {#1677 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1552 …}
+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 {#1638
date: 2023-09-28 08:34:52.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1590 …}
+votes: Doctrine\ORM\PersistentCollection {#1593 …}
+reports: Doctrine\ORM\PersistentCollection {#1743 …}
+favourites: Doctrine\ORM\PersistentCollection {#1527 …}
+notifications: Doctrine\ORM\PersistentCollection {#1560 …}
+badges: Doctrine\ORM\PersistentCollection {#1558 …}
+children: [
App\Entity\EntryComment {#1611}
]
-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 {#1643
date: 2023-09-27 21:22:49.0 +02:00
}
+createdAt: DateTimeImmutable @1695841461 {#1627
date: 2023-09-27 21:04:21.0 +02:00
}
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+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 {#1596
date: 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 {#2464 …}
+nested: Doctrine\ORM\PersistentCollection {#1740 …}
+votes: Doctrine\ORM\PersistentCollection {#1739 …}
+reports: Doctrine\ORM\PersistentCollection {#1716 …}
+favourites: Doctrine\ORM\PersistentCollection {#2461 …}
+notifications: Doctrine\ORM\PersistentCollection {#2447 …}
-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 {#1555
date: 2023-09-27 22:59:50.0 +02:00
}
+"title": 29928
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#1611
+user: App\Entity\User {#260 …}
+entry: App\Entity\Entry {#1432
+user: App\Entity\User {#260 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: Proxies\__CG__\App\Entity\Image {#1677 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1552 …}
+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 {#1638
date: 2023-09-28 08:34:52.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1590 …}
+votes: Doctrine\ORM\PersistentCollection {#1593 …}
+reports: Doctrine\ORM\PersistentCollection {#1743 …}
+favourites: Doctrine\ORM\PersistentCollection {#1527 …}
+notifications: Doctrine\ORM\PersistentCollection {#1560 …}
+badges: Doctrine\ORM\PersistentCollection {#1558 …}
+children: [
App\Entity\EntryComment {#1611}
]
-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 {#1643
date: 2023-09-27 21:22:49.0 +02:00
}
+createdAt: DateTimeImmutable @1695841461 {#1627
date: 2023-09-27 21:04:21.0 +02:00
}
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+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 {#1596
date: 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 {#2464 …}
+nested: Doctrine\ORM\PersistentCollection {#1740 …}
+votes: Doctrine\ORM\PersistentCollection {#1739 …}
+reports: Doctrine\ORM\PersistentCollection {#1716 …}
+favourites: Doctrine\ORM\PersistentCollection {#2461 …}
+notifications: Doctrine\ORM\PersistentCollection {#2447 …}
-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 {#1555
date: 2023-09-27 22:59:50.0 +02:00
}
+"title": 29928
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1611
+user: App\Entity\User {#260 …}
+entry: App\Entity\Entry {#1432
+user: App\Entity\User {#260 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: Proxies\__CG__\App\Entity\Image {#1677 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1552 …}
+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 {#1638
date: 2023-09-28 08:34:52.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1590 …}
+votes: Doctrine\ORM\PersistentCollection {#1593 …}
+reports: Doctrine\ORM\PersistentCollection {#1743 …}
+favourites: Doctrine\ORM\PersistentCollection {#1527 …}
+notifications: Doctrine\ORM\PersistentCollection {#1560 …}
+badges: Doctrine\ORM\PersistentCollection {#1558 …}
+children: [
App\Entity\EntryComment {#1611}
]
-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 {#1643
date: 2023-09-27 21:22:49.0 +02:00
}
+createdAt: DateTimeImmutable @1695841461 {#1627
date: 2023-09-27 21:04:21.0 +02:00
}
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1663 …}
+image: null
+parent: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+root: Proxies\__CG__\App\Entity\EntryComment {#2463 …}
+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 {#1596
date: 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 {#2464 …}
+nested: Doctrine\ORM\PersistentCollection {#1740 …}
+votes: Doctrine\ORM\PersistentCollection {#1739 …}
+reports: Doctrine\ORM\PersistentCollection {#1716 …}
+favourites: Doctrine\ORM\PersistentCollection {#2461 …}
+notifications: Doctrine\ORM\PersistentCollection {#2447 …}
-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 {#1555
date: 2023-09-27 22:59:50.0 +02:00
}
+"title": 29928
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_ADMIN
|
null |
|
Show voter details
|
10 |
DENIED
|
ROLE_MODERATOR
|
null |
|
Show voter details
|