├── .gitattributes ├── LICENSE ├── README.md ├── docs ├── BC_BuildSheet.pdf ├── BC_BuildSheet.svg ├── BC_ReplaceChassis.pdf ├── BC_ReplaceChassis.svg ├── BeanCounter-Feature_Lit.jpg ├── BeanCounter_ManualCombined.pdf ├── beancounter-front.jpg ├── beancounter_site_archive.zip └── logo.png ├── firmware └── BeanCounter_V10 │ ├── BeanCounter_V10.ino │ ├── BeanCounter_V10.ino.hex │ ├── BeanCounter_V10.ino.lst │ ├── avrdude.conf │ ├── avrdude.exe │ ├── debug.cfg │ ├── debug_custom.json │ ├── empty_all.hex │ ├── libusb0.dll │ └── programming_script.bat ├── hardware ├── BeanCounter_V10.brd ├── BeanCounter_V10.sch ├── Production │ ├── BeanCounter-Gerber.zip │ ├── BeanCounter-MountSMD.zip │ ├── BeanCounter-Panel-for-3DM.b#1 │ ├── BeanCounter-Panel-for-3DM.b#2 │ ├── BeanCounter-Panel-for-3DM.brd │ ├── BeanCounter-Panel.brd │ └── BeanCounter-centroids.csv ├── cad │ ├── BC_3DP_Simple_Resin v1.3mf │ ├── BC_3DP_Simple_Resin v1.f3d │ ├── BC_3DP_Simple_Resin v1.iges │ └── BC_3DP_Simple_Resin v1.step └── libs │ ├── IR.lbr │ ├── OSHWBC.svg │ ├── logo.lbr │ ├── logo.svg │ └── tape.lbr ├── mechanical ├── BeanCounter_Rev11.step ├── BeanCounter_Rev11.stl ├── BeanCounter_Tall_Slot_Mod.stl ├── BeanCounter_v10_Stock.f3d ├── BeanCounter_v10_Stock.step ├── BeanCounter_v10_Stock.stl └── BeanCounter_v11.f3z └── packaging └── sticker.svg /.gitattributes: -------------------------------------------------------------------------------- 1 | # This document allows GitHub to correctly identify Altium Designer, KiCAD, Gerber and Eagle documents and add them to GitHub Repository's language statistics. 2 | # 这个文档可以使GitHub正确的识别Altium Designer、KiCAD、Gerber以及Eagle的文档,并将它们加入到GitHub Repository的语言统计中。 3 | 4 | # https://gist.github.com/SynthesisDu/61c37bf71159cc9a511558ec7c218339 5 | 6 | *.OutJob linguist-detectable=true 7 | *.PcbDoc linguist-detectable=true 8 | *.PrjPCB linguist-detectable=true 9 | *.SchDoc linguist-detectable=true 10 | *.outjob linguist-detectable=true 11 | *.pcbdoc linguist-detectable=true 12 | *.prjpcb linguist-detectable=true 13 | *.schdoc linguist-detectable=true 14 | *.PCB linguist-detectable=true 15 | *.sch linguist-detectable=true 16 | *.lib linguist-detectable=true 17 | *.epf linguist-detectable=true 18 | *.brd linguist-detectable=true 19 | *.pro linguist-detectable=true 20 | *.gbr linguist-detectable=true 21 | *.cmp linguist-detectable=true 22 | *.gbl linguist-detectable=true 23 | *.gbo linguist-detectable=true 24 | *.gbp linguist-detectable=true 25 | *.gbs linguist-detectable=true 26 | *.gko linguist-detectable=true 27 | *.gml linguist-detectable=true 28 | *.gpb linguist-detectable=true 29 | *.gpt linguist-detectable=true 30 | *.gtl linguist-detectable=true 31 | *.gto linguist-detectable=true 32 | *.gtp linguist-detectable=true 33 | *.gts linguist-detectable=true 34 | *.ncl linguist-detectable=true 35 | *.sol linguist-detectable=true 36 | *.GBR linguist-detectable=true 37 | *.CMP linguist-detectable=true 38 | *.GBL linguist-detectable=true 39 | *.GBO linguist-detectable=true 40 | *.GBP linguist-detectable=true 41 | *.GBS linguist-detectable=true 42 | *.GKO linguist-detectable=true 43 | *.GML linguist-detectable=true 44 | *.GBP linguist-detectable=true 45 | *.GPT linguist-detectable=true 46 | *.GTL linguist-detectable=true 47 | *.GTO linguist-detectable=true 48 | *.GTP linguist-detectable=true 49 | *.GTS linguist-detectable=true 50 | *.NCL linguist-detectable=true 51 | *.SOL linguist-detectable=true 52 | *.kicad_pcb linguist-detectable=true 53 | *.pro linguist-detectable=true 54 | *.obj linguist-detectable=true 55 | *.stl linguist-detectable=true 56 | *.md linguist-detectable=true 57 | *.dxf linguist-detectable=true 58 | *.dwg linguist-detectable=true -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Attribution-ShareAlike 4.0 International 2 | 3 | ======================================================================= 4 | 5 | Creative Commons Corporation ("Creative Commons") is not a law firm and 6 | does not provide legal services or legal advice. Distribution of 7 | Creative Commons public licenses does not create a lawyer-client or 8 | other relationship. Creative Commons makes its licenses and related 9 | information available on an "as-is" basis. Creative Commons gives no 10 | warranties regarding its licenses, any material licensed under their 11 | terms and conditions, or any related information. Creative Commons 12 | disclaims all liability for damages resulting from their use to the 13 | fullest extent possible. 14 | 15 | Using Creative Commons Public Licenses 16 | 17 | Creative Commons public licenses provide a standard set of terms and 18 | conditions that creators and other rights holders may use to share 19 | original works of authorship and other material subject to copyright 20 | and certain other rights specified in the public license below. The 21 | following considerations are for informational purposes only, are not 22 | exhaustive, and do not form part of our licenses. 23 | 24 | Considerations for licensors: Our public licenses are 25 | intended for use by those authorized to give the public 26 | permission to use material in ways otherwise restricted by 27 | copyright and certain other rights. Our licenses are 28 | irrevocable. Licensors should read and understand the terms 29 | and conditions of the license they choose before applying it. 30 | Licensors should also secure all rights necessary before 31 | applying our licenses so that the public can reuse the 32 | material as expected. Licensors should clearly mark any 33 | material not subject to the license. This includes other CC- 34 | licensed material, or material used under an exception or 35 | limitation to copyright. More considerations for licensors: 36 | wiki.creativecommons.org/Considerations_for_licensors 37 | 38 | Considerations for the public: By using one of our public 39 | licenses, a licensor grants the public permission to use the 40 | licensed material under specified terms and conditions. If 41 | the licensor's permission is not necessary for any reason--for 42 | example, because of any applicable exception or limitation to 43 | copyright--then that use is not regulated by the license. Our 44 | licenses grant only permissions under copyright and certain 45 | other rights that a licensor has authority to grant. Use of 46 | the licensed material may still be restricted for other 47 | reasons, including because others have copyright or other 48 | rights in the material. A licensor may make special requests, 49 | such as asking that all changes be marked or described. 50 | Although not required by our licenses, you are encouraged to 51 | respect those requests where reasonable. More_considerations 52 | for the public: 53 | wiki.creativecommons.org/Considerations_for_licensees 54 | 55 | ======================================================================= 56 | 57 | Creative Commons Attribution-ShareAlike 4.0 International Public 58 | License 59 | 60 | By exercising the Licensed Rights (defined below), You accept and agree 61 | to be bound by the terms and conditions of this Creative Commons 62 | Attribution-ShareAlike 4.0 International Public License ("Public 63 | License"). To the extent this Public License may be interpreted as a 64 | contract, You are granted the Licensed Rights in consideration of Your 65 | acceptance of these terms and conditions, and the Licensor grants You 66 | such rights in consideration of benefits the Licensor receives from 67 | making the Licensed Material available under these terms and 68 | conditions. 69 | 70 | 71 | Section 1 -- Definitions. 72 | 73 | a. Adapted Material means material subject to Copyright and Similar 74 | Rights that is derived from or based upon the Licensed Material 75 | and in which the Licensed Material is translated, altered, 76 | arranged, transformed, or otherwise modified in a manner requiring 77 | permission under the Copyright and Similar Rights held by the 78 | Licensor. For purposes of this Public License, where the Licensed 79 | Material is a musical work, performance, or sound recording, 80 | Adapted Material is always produced where the Licensed Material is 81 | synched in timed relation with a moving image. 82 | 83 | b. Adapter's License means the license You apply to Your Copyright 84 | and Similar Rights in Your contributions to Adapted Material in 85 | accordance with the terms and conditions of this Public License. 86 | 87 | c. BY-SA Compatible License means a license listed at 88 | creativecommons.org/compatiblelicenses, approved by Creative 89 | Commons as essentially the equivalent of this Public License. 90 | 91 | d. Copyright and Similar Rights means copyright and/or similar rights 92 | closely related to copyright including, without limitation, 93 | performance, broadcast, sound recording, and Sui Generis Database 94 | Rights, without regard to how the rights are labeled or 95 | categorized. For purposes of this Public License, the rights 96 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 97 | Rights. 98 | 99 | e. Effective Technological Measures means those measures that, in the 100 | absence of proper authority, may not be circumvented under laws 101 | fulfilling obligations under Article 11 of the WIPO Copyright 102 | Treaty adopted on December 20, 1996, and/or similar international 103 | agreements. 104 | 105 | f. Exceptions and Limitations means fair use, fair dealing, and/or 106 | any other exception or limitation to Copyright and Similar Rights 107 | that applies to Your use of the Licensed Material. 108 | 109 | g. License Elements means the license attributes listed in the name 110 | of a Creative Commons Public License. The License Elements of this 111 | Public License are Attribution and ShareAlike. 112 | 113 | h. Licensed Material means the artistic or literary work, database, 114 | or other material to which the Licensor applied this Public 115 | License. 116 | 117 | i. Licensed Rights means the rights granted to You subject to the 118 | terms and conditions of this Public License, which are limited to 119 | all Copyright and Similar Rights that apply to Your use of the 120 | Licensed Material and that the Licensor has authority to license. 121 | 122 | j. Licensor means the individual(s) or entity(ies) granting rights 123 | under this Public License. 124 | 125 | k. Share means to provide material to the public by any means or 126 | process that requires permission under the Licensed Rights, such 127 | as reproduction, public display, public performance, distribution, 128 | dissemination, communication, or importation, and to make material 129 | available to the public including in ways that members of the 130 | public may access the material from a place and at a time 131 | individually chosen by them. 132 | 133 | l. Sui Generis Database Rights means rights other than copyright 134 | resulting from Directive 96/9/EC of the European Parliament and of 135 | the Council of 11 March 1996 on the legal protection of databases, 136 | as amended and/or succeeded, as well as other essentially 137 | equivalent rights anywhere in the world. 138 | 139 | m. You means the individual or entity exercising the Licensed Rights 140 | under this Public License. Your has a corresponding meaning. 141 | 142 | 143 | Section 2 -- Scope. 144 | 145 | a. License grant. 146 | 147 | 1. Subject to the terms and conditions of this Public License, 148 | the Licensor hereby grants You a worldwide, royalty-free, 149 | non-sublicensable, non-exclusive, irrevocable license to 150 | exercise the Licensed Rights in the Licensed Material to: 151 | 152 | a. reproduce and Share the Licensed Material, in whole or 153 | in part; and 154 | 155 | b. produce, reproduce, and Share Adapted Material. 156 | 157 | 2. Exceptions and Limitations. For the avoidance of doubt, where 158 | Exceptions and Limitations apply to Your use, this Public 159 | License does not apply, and You do not need to comply with 160 | its terms and conditions. 161 | 162 | 3. Term. The term of this Public License is specified in Section 163 | 6(a). 164 | 165 | 4. Media and formats; technical modifications allowed. The 166 | Licensor authorizes You to exercise the Licensed Rights in 167 | all media and formats whether now known or hereafter created, 168 | and to make technical modifications necessary to do so. The 169 | Licensor waives and/or agrees not to assert any right or 170 | authority to forbid You from making technical modifications 171 | necessary to exercise the Licensed Rights, including 172 | technical modifications necessary to circumvent Effective 173 | Technological Measures. For purposes of this Public License, 174 | simply making modifications authorized by this Section 2(a) 175 | (4) never produces Adapted Material. 176 | 177 | 5. Downstream recipients. 178 | 179 | a. Offer from the Licensor -- Licensed Material. Every 180 | recipient of the Licensed Material automatically 181 | receives an offer from the Licensor to exercise the 182 | Licensed Rights under the terms and conditions of this 183 | Public License. 184 | 185 | b. Additional offer from the Licensor -- Adapted Material. 186 | Every recipient of Adapted Material from You 187 | automatically receives an offer from the Licensor to 188 | exercise the Licensed Rights in the Adapted Material 189 | under the conditions of the Adapter's License You apply. 190 | 191 | c. No downstream restrictions. You may not offer or impose 192 | any additional or different terms or conditions on, or 193 | apply any Effective Technological Measures to, the 194 | Licensed Material if doing so restricts exercise of the 195 | Licensed Rights by any recipient of the Licensed 196 | Material. 197 | 198 | 6. No endorsement. Nothing in this Public License constitutes or 199 | may be construed as permission to assert or imply that You 200 | are, or that Your use of the Licensed Material is, connected 201 | with, or sponsored, endorsed, or granted official status by, 202 | the Licensor or others designated to receive attribution as 203 | provided in Section 3(a)(1)(A)(i). 204 | 205 | b. Other rights. 206 | 207 | 1. Moral rights, such as the right of integrity, are not 208 | licensed under this Public License, nor are publicity, 209 | privacy, and/or other similar personality rights; however, to 210 | the extent possible, the Licensor waives and/or agrees not to 211 | assert any such rights held by the Licensor to the limited 212 | extent necessary to allow You to exercise the Licensed 213 | Rights, but not otherwise. 214 | 215 | 2. Patent and trademark rights are not licensed under this 216 | Public License. 217 | 218 | 3. To the extent possible, the Licensor waives any right to 219 | collect royalties from You for the exercise of the Licensed 220 | Rights, whether directly or through a collecting society 221 | under any voluntary or waivable statutory or compulsory 222 | licensing scheme. In all other cases the Licensor expressly 223 | reserves any right to collect such royalties. 224 | 225 | 226 | Section 3 -- License Conditions. 227 | 228 | Your exercise of the Licensed Rights is expressly made subject to the 229 | following conditions. 230 | 231 | a. Attribution. 232 | 233 | 1. If You Share the Licensed Material (including in modified 234 | form), You must: 235 | 236 | a. retain the following if it is supplied by the Licensor 237 | with the Licensed Material: 238 | 239 | i. identification of the creator(s) of the Licensed 240 | Material and any others designated to receive 241 | attribution, in any reasonable manner requested by 242 | the Licensor (including by pseudonym if 243 | designated); 244 | 245 | ii. a copyright notice; 246 | 247 | iii. a notice that refers to this Public License; 248 | 249 | iv. a notice that refers to the disclaimer of 250 | warranties; 251 | 252 | v. a URI or hyperlink to the Licensed Material to the 253 | extent reasonably practicable; 254 | 255 | b. indicate if You modified the Licensed Material and 256 | retain an indication of any previous modifications; and 257 | 258 | c. indicate the Licensed Material is licensed under this 259 | Public License, and include the text of, or the URI or 260 | hyperlink to, this Public License. 261 | 262 | 2. You may satisfy the conditions in Section 3(a)(1) in any 263 | reasonable manner based on the medium, means, and context in 264 | which You Share the Licensed Material. For example, it may be 265 | reasonable to satisfy the conditions by providing a URI or 266 | hyperlink to a resource that includes the required 267 | information. 268 | 269 | 3. If requested by the Licensor, You must remove any of the 270 | information required by Section 3(a)(1)(A) to the extent 271 | reasonably practicable. 272 | 273 | b. ShareAlike. 274 | 275 | In addition to the conditions in Section 3(a), if You Share 276 | Adapted Material You produce, the following conditions also apply. 277 | 278 | 1. The Adapter's License You apply must be a Creative Commons 279 | license with the same License Elements, this version or 280 | later, or a BY-SA Compatible License. 281 | 282 | 2. You must include the text of, or the URI or hyperlink to, the 283 | Adapter's License You apply. You may satisfy this condition 284 | in any reasonable manner based on the medium, means, and 285 | context in which You Share Adapted Material. 286 | 287 | 3. You may not offer or impose any additional or different terms 288 | or conditions on, or apply any Effective Technological 289 | Measures to, Adapted Material that restrict exercise of the 290 | rights granted under the Adapter's License You apply. 291 | 292 | 293 | Section 4 -- Sui Generis Database Rights. 294 | 295 | Where the Licensed Rights include Sui Generis Database Rights that 296 | apply to Your use of the Licensed Material: 297 | 298 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 299 | to extract, reuse, reproduce, and Share all or a substantial 300 | portion of the contents of the database; 301 | 302 | b. if You include all or a substantial portion of the database 303 | contents in a database in which You have Sui Generis Database 304 | Rights, then the database in which You have Sui Generis Database 305 | Rights (but not its individual contents) is Adapted Material, 306 | 307 | including for purposes of Section 3(b); and 308 | c. You must comply with the conditions in Section 3(a) if You Share 309 | all or a substantial portion of the contents of the database. 310 | 311 | For the avoidance of doubt, this Section 4 supplements and does not 312 | replace Your obligations under this Public License where the Licensed 313 | Rights include other Copyright and Similar Rights. 314 | 315 | 316 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 317 | 318 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 319 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 320 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 321 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 322 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 323 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 324 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 325 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 326 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 327 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 328 | 329 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 330 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 331 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 332 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 333 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 334 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 335 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 336 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 337 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 338 | 339 | c. The disclaimer of warranties and limitation of liability provided 340 | above shall be interpreted in a manner that, to the extent 341 | possible, most closely approximates an absolute disclaimer and 342 | waiver of all liability. 343 | 344 | 345 | Section 6 -- Term and Termination. 346 | 347 | a. This Public License applies for the term of the Copyright and 348 | Similar Rights licensed here. However, if You fail to comply with 349 | this Public License, then Your rights under this Public License 350 | terminate automatically. 351 | 352 | b. Where Your right to use the Licensed Material has terminated under 353 | Section 6(a), it reinstates: 354 | 355 | 1. automatically as of the date the violation is cured, provided 356 | it is cured within 30 days of Your discovery of the 357 | violation; or 358 | 359 | 2. upon express reinstatement by the Licensor. 360 | 361 | For the avoidance of doubt, this Section 6(b) does not affect any 362 | right the Licensor may have to seek remedies for Your violations 363 | of this Public License. 364 | 365 | c. For the avoidance of doubt, the Licensor may also offer the 366 | Licensed Material under separate terms or conditions or stop 367 | distributing the Licensed Material at any time; however, doing so 368 | will not terminate this Public License. 369 | 370 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 371 | License. 372 | 373 | 374 | Section 7 -- Other Terms and Conditions. 375 | 376 | a. The Licensor shall not be bound by any additional or different 377 | terms or conditions communicated by You unless expressly agreed. 378 | 379 | b. Any arrangements, understandings, or agreements regarding the 380 | Licensed Material not stated herein are separate from and 381 | independent of the terms and conditions of this Public License. 382 | 383 | 384 | Section 8 -- Interpretation. 385 | 386 | a. For the avoidance of doubt, this Public License does not, and 387 | shall not be interpreted to, reduce, limit, restrict, or impose 388 | conditions on any use of the Licensed Material that could lawfully 389 | be made without permission under this Public License. 390 | 391 | b. To the extent possible, if any provision of this Public License is 392 | deemed unenforceable, it shall be automatically reformed to the 393 | minimum extent necessary to make it enforceable. If the provision 394 | cannot be reformed, it shall be severed from this Public License 395 | without affecting the enforceability of the remaining terms and 396 | conditions. 397 | 398 | c. No term or condition of this Public License will be waived and no 399 | failure to comply consented to unless expressly agreed to by the 400 | Licensor. 401 | 402 | d. Nothing in this Public License constitutes or may be interpreted 403 | as a limitation upon, or waiver of, any privileges and immunities 404 | that apply to the Licensor or You, including from the legal 405 | processes of any jurisdiction or authority. 406 | 407 | 408 | ======================================================================= 409 | 410 | Creative Commons is not a party to its public 411 | licenses. Notwithstanding, Creative Commons may elect to apply one of 412 | its public licenses to material it publishes and in those instances 413 | will be considered the “Licensor.” The text of the Creative Commons 414 | public licenses is dedicated to the public domain under the CC0 Public 415 | Domain Dedication. Except for the limited purpose of indicating that 416 | material is shared under a Creative Commons public license or as 417 | otherwise permitted by the Creative Commons policies published at 418 | creativecommons.org/policies, Creative Commons does not authorize the 419 | use of the trademark "Creative Commons" or any other trademark or logo 420 | of Creative Commons without its prior written consent including, 421 | without limitation, in connection with any unauthorized modifications 422 | to any of its public licenses or any other arrangements, 423 | understandings, or agreements concerning use of licensed material. For 424 | the avoidance of doubt, this paragraph does not form part of the 425 | public licenses. 426 | 427 | Creative Commons may be contacted at creativecommons.org. 428 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BeanCounter 2 | 3 | [![CC BY-SA 4.0][cc-by-sa-shield]][cc-by-sa] 4 | 5 | BeanCounter is an SMT parts counter that fits in your pocket. It’s battery powered and uses two IR photointerrupters to count parts about as fast as you can pull them through. It works with any opaque, 8-mm-wide carrier tape up to 2 mm in height, which covers most 0805-or-smaller LEDs and passives, as well as SOT23 transistors. It’s an affordable SMT tape counter without unnecessary bells and whistles. 6 | 7 | ![BeanCounter on white background](https://github.com/NPoole/BeanCounter/blob/main/docs/BeanCounter-Feature_Lit.jpg?raw=true) 8 |

Photo Courtesy of Hannah Wood/SparkFun Electronics

9 | 10 | ## Available Now at [Crowd Supply](https://www.crowdsupply.com/great-big-factory/beancounter), [Mouser](https://www.mouser.com/c/electromechanical/industrial-automation/?m=Great%20Big%20Factory), and [SparkFun](https://www.sparkfun.com/products/21738) 11 | 12 | To use BeanCounter, simply turn it on and start pulling tape through. It will immediately begin counting your parts using one of two modes: 13 | 14 | * Inventory Mode - Using just one sensor, BeanCounter polls at its fastest rate, allowing you to count long tapes and partial reels very quickly. 15 | * Dispense Mode - With both sensors active, BeanCounter can detect the direction in which you are pulling tape, which allows it to count upward in one direction and downward in the other. This feature is useful in kitting contexts where you may be cutting fixed quantities off the end of a full reel. 16 | Part pitch is configurable in either mode, so you can accurately count any part that physically fits through the counter. 17 | 18 | Digging a little deeper, what BeanCounter actually does is count feed holes and divide by the part pitch. Because it cannot differentiate between parts and empty pockets, you will need to ensure that it begins counting after empty tape has been pulled through and stops counting before it reaches the tail. To help with this, we’ve added a "pause" button that you can use to freeze the count while pulling empty tape. 19 | 20 | [cc-by-sa]: http://creativecommons.org/licenses/by-sa/4.0/ 21 | [cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg 22 | -------------------------------------------------------------------------------- /docs/BC_BuildSheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/BC_BuildSheet.pdf -------------------------------------------------------------------------------- /docs/BC_ReplaceChassis.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/BC_ReplaceChassis.pdf -------------------------------------------------------------------------------- /docs/BeanCounter-Feature_Lit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/BeanCounter-Feature_Lit.jpg -------------------------------------------------------------------------------- /docs/BeanCounter_ManualCombined.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/BeanCounter_ManualCombined.pdf -------------------------------------------------------------------------------- /docs/beancounter-front.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/beancounter-front.jpg -------------------------------------------------------------------------------- /docs/beancounter_site_archive.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/beancounter_site_archive.zip -------------------------------------------------------------------------------- /docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/docs/logo.png -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/BeanCounter_V10.ino: -------------------------------------------------------------------------------- 1 | /************************************************************************************************ 2 | * -------------------------------------------------------------------------------- 3 | * ______ ______ __ 4 | * | __ \.-----.---.-.-----.| |.-----.--.--.-----.| |_.-----.----. 5 | * | __ <| -__| _ | || ---|| _ | | | || _| -__| _| 6 | * |______/|_____|___._|__|__||______||_____|_____|__|__||____|_____|__| 7 | * SMT Parts Counting Tool 8 | * ( ) ( ) ( ) ( ) ( ) ( ) ( ) 9 | * -------------------------------------------------------------------------------- 10 | * 11 | * Ver 1.0 12 | * Targeting ATtiny861V-10MU 13 | * Built in Arduino using Spence Konde's ATTinyCore (https://github.com/SpenceKonde/ATTinyCore) 14 | * 15 | * Copyright 2022 Nick Poole 16 | * 17 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software 18 | * and associated documentation files (the "Software"), to deal in the Software without restriction, 19 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, 20 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software 21 | * is furnished to do so, subject to the following conditions: 22 | * 23 | * The above copyright notice and this permission notice shall be included in all copies or 24 | * substantial portions of the Software. 25 | * 26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING 27 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 28 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 29 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 30 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 31 | ************************************************************************************************/ 32 | 33 | #include 34 | 35 | // Pin defines 36 | #define DIGIT1_CATHODE 8 37 | #define DIGIT2_CATHODE 9 38 | #define DIGIT3_CATHODE 10 39 | #define IRLED 11 40 | #define STARTBTN 12 41 | #define SETBTN 13 42 | #define IRSENSOR_A A9 43 | #define IRSENSOR_B A6 44 | 45 | // EEPROM Addresses 46 | #define EEPROM_ADDR_PITCH 0x00 47 | #define EEPROM_ADDR_MODE 0x01 48 | 49 | // This is the amount of dead time where we allow a digit 50 | // to be on before moving on to the next. Ideally, we would 51 | // never busy-wait like this. We're already polling the 52 | // IR sensors in the downtime during count mode. This is 53 | // just used to increase subjective display brightness 54 | // in modes where nothing needs to be done between segment 55 | // updates 56 | int scanDelay = 500; 57 | 58 | // These variables are used to store the state of the IR 59 | // interruptors between checks, particularly when counting 60 | // in two-sensor up/down mode. 61 | byte state_previous = 0b00; 62 | byte state_a = 0b01; 63 | byte state_b = 0b10; 64 | bool bool_state_previous = 1; 65 | 66 | // These bytes are used to store the state of every LED in the 67 | // 7-segment display. They are essentially a frame buffer for the 68 | // 7-seg. 69 | byte digit1 = 0; 70 | byte digit2 = 0; 71 | byte digit3 = 0; 72 | 73 | // Device Mode 74 | // This is the state of the device wrt the top-level state machine. 75 | // 0 - IDLE/STOP 76 | // 1 - COUNTING 77 | // 2 - RESET 78 | // 3 - SETTINGS MENU 79 | byte deviceMode = 0; 80 | 81 | // Return Mode stores the state number of the mode that a given 82 | // mode "exits" to. This is useful when going to mode 3 because 83 | // we should always return from the Settings Menu into the mode 84 | // that we entered from 85 | byte returnMode; 86 | 87 | // Counting Mode 88 | // 0: Inventory Mode 89 | // In Inventory Mode, we use only one IR interruptor. This is 90 | // faster because we only need to read one ADC and the decision-making 91 | // is simpler. Also, because it's direction agnostic, it correctly 92 | // handles end/start of tape. 93 | // 1: Dispense Mode 94 | // In Dispense Mode we use both IR interruptors to create an encoder 95 | // with the carrier tape. This allows us to determine the direction 96 | // of the tape at the expense of counting more slowly. Also, because 97 | // end/start of tape transitions look identical to motion in the 98 | // opposite direction, we can't correctly count end/start of tape. 99 | bool countingMode = 0; 100 | 101 | // pitch of the parts on the carrier tape in mm 102 | byte pitch = 4; 103 | 104 | // ratio of holes in the carrier tape to actual parts, 105 | // calculated based on the pitch 106 | float ratio = 1.0; 107 | 108 | // displayBuf is a place to store a value to be 109 | // displayed on the 7-seg using the translateSegments() 110 | // method 111 | int displayBuf = 0; 112 | 113 | // count is a place to store the parts count, especially 114 | // when the display is showing something different 115 | int count = 0; 116 | 117 | // numPos is used to store the individual digits of a 118 | // number in order of their decimal place. This is the 119 | // output buffer of the numPositions() method. It's 120 | // global to avoid passing memory pointers around and 121 | // inevitably creating a hard to diagnose bug. 122 | byte numPos[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 123 | 124 | // This is a lookup table of segment states in order 125 | // their integer value. i.e. segLUT[6] returns the 126 | // LED states to display a '6' 127 | const byte segLUT[10] = { 128 | 0b01110111, 129 | 0b00100100, 130 | 0b01011101, 131 | 0b01011011, 132 | 0b00111010, 133 | 0b01101011, 134 | 0b01101111, 135 | 0b01010010, 136 | 0b01111111, 137 | 0b01111010}; 138 | 139 | // We don't do much in setup() just set some 140 | // pinModes and initial pin states. We also check 141 | // the EEPROM for saved user settings 142 | void setup() 143 | { 144 | 145 | for (int i = 0; i < 12; i++) 146 | { 147 | pinMode(i, OUTPUT); 148 | digitalWrite(i, 0); 149 | } 150 | 151 | for (int i = 12; i < 14; i++) 152 | { 153 | pinMode(i, INPUT_PULLUP); 154 | } 155 | 156 | pinMode(IRSENSOR_A, INPUT); 157 | pinMode(IRSENSOR_B, INPUT); 158 | loadSettings(); 159 | delay(50); 160 | selfTest(); 161 | delay(50); 162 | //digitalWrite(IRLED, 1); 163 | } 164 | 165 | // The main loop just manages the state machine 166 | void loop() 167 | { 168 | 169 | switch (deviceMode) 170 | { 171 | case 0: 172 | mode0(); 173 | break; 174 | case 1: 175 | mode1(); 176 | break; 177 | case 2: 178 | mode2(); 179 | break; 180 | case 3: 181 | mode3(); 182 | break; 183 | default: 184 | deviceMode = 0; 185 | break; 186 | } 187 | 188 | //ADC TEST MODE 189 | //translateSegments(analogRead(A9)); 190 | //updateLED(); 191 | 192 | } 193 | 194 | // Check EEPROM for user settings and load them 195 | void loadSettings() 196 | { 197 | byte nvmPitch, nvmMode; 198 | EEPROM.get(EEPROM_ADDR_PITCH, nvmPitch); 199 | EEPROM.get(EEPROM_ADDR_MODE, nvmMode); 200 | 201 | // We're hypervigilant about writing a valid value to pitch, 202 | // This way even if EEPROM gets corrupted by low battery, 203 | // At least the pitch ends up in a known and user-correctable 204 | // state 205 | if (nvmPitch == 1 || nvmPitch == 2 || nvmPitch == 4 || nvmPitch == 8 || nvmPitch == 12 || nvmPitch == 16) 206 | { 207 | pitch = nvmPitch; 208 | ratio = 4.0 / int(pitch); 209 | } 210 | 211 | if (nvmMode == 0x00) 212 | { 213 | countingMode = 0; 214 | } 215 | else if (nvmMode == 0x01) 216 | { 217 | countingMode = 1; 218 | } 219 | return; 220 | } 221 | 222 | // Mode 0: IDLE/STOP 223 | // In this mode, the BeanCounter isn't counting. It just displays the last 224 | // count and ignores the IR interruptors. To save battery, it also shuts off 225 | // the IR illuminators. 226 | void mode0() 227 | { 228 | 229 | if (digitalRead(STARTBTN) == 0) 230 | { 231 | deviceMode = 2; 232 | returnMode = 1; 233 | return; 234 | } 235 | 236 | digitalWrite(IRLED, 0); 237 | 238 | byte blinkTimer = 0; 239 | 240 | while (deviceMode == 0) 241 | { 242 | 243 | blinkTimer++; 244 | 245 | updateLED(); 246 | 247 | if (digitalRead(STARTBTN) == 0) 248 | { 249 | delay(500); 250 | deviceMode = 1; 251 | } 252 | 253 | if (digitalRead(SETBTN) == 0) 254 | { 255 | delay(500); 256 | deviceMode = 3; 257 | returnMode = 0; 258 | } 259 | 260 | if(blinkTimer > 125) 261 | { 262 | translateSegments(displayBuf); 263 | } 264 | else 265 | { 266 | digit1 = 0; 267 | } 268 | } 269 | } 270 | 271 | // Mode 1: COUNTING 272 | // In this mode, we're just checking the user buttons between counting parts 273 | // and updating the display. The actual counting (polling the IR interruptors) 274 | // happens inside of updateLED() for timing reasons. 275 | void mode1() 276 | { 277 | 278 | if (digitalRead(STARTBTN) == 0) 279 | { 280 | deviceMode = 2; 281 | returnMode = 0; 282 | return; 283 | } 284 | 285 | digitalWrite(IRLED, 1); 286 | 287 | delay(50); 288 | 289 | while (deviceMode == 1) 290 | { 291 | 292 | updateLED(); 293 | 294 | if (digitalRead(STARTBTN) == 0) 295 | { 296 | delay(500); 297 | deviceMode = 0; 298 | } 299 | 300 | if (digitalRead(SETBTN) == 0) 301 | { 302 | delay(500); 303 | deviceMode = 3; 304 | returnMode = 1; 305 | } 306 | 307 | translateSegments(displayBuf); 308 | } 309 | } 310 | 311 | // Mode 2: RESET 312 | // In this mode, we wait to see if the user really means it 313 | // (if they're holding the button down) and then we reset the 314 | // counter 315 | void mode2() 316 | { 317 | while (deviceMode == 2) 318 | { 319 | for (int i = 0; i < 100; i++) 320 | { 321 | updateLED(); 322 | } 323 | delay(300); 324 | if (digitalRead(STARTBTN) == 1) 325 | { 326 | selfTest(); 327 | count = 0; 328 | displayBuf = 0; 329 | deviceMode = returnMode; 330 | } 331 | } 332 | } 333 | 334 | // Mode 3: SETTINGS MENU 335 | // In mode 3, the SETUP button cycles through various settings that can be 336 | // adjusted using the COUNT/RESET button. In order to exit the mode 3, the 337 | // user must cycle through the entire settings menu. Probably OK because the 338 | // user likely won't adjust the settings often. 339 | void mode3() 340 | { 341 | byte mode3state = 0; 342 | 343 | while (deviceMode == 3) 344 | { 345 | 346 | switch(mode3state) 347 | { 348 | case 0: 349 | if (digitalRead(STARTBTN) == 0) 350 | { 351 | delay(200); 352 | switch (pitch) 353 | { 354 | case 1: 355 | pitch = 2; 356 | break; 357 | case 2: 358 | pitch = 4; 359 | break; 360 | case 4: 361 | pitch = 8; 362 | break; 363 | case 8: 364 | pitch = 12; 365 | break; 366 | case 12: 367 | pitch = 16; 368 | break; 369 | case 16: 370 | pitch = 1; 371 | break; 372 | } 373 | ratio = 4.0 / int(pitch); 374 | } 375 | if (digitalRead(SETBTN) == 0) 376 | { 377 | delay(200); 378 | mode3state = 1; 379 | } 380 | numPositions(pitch); 381 | digit3 = segLUT[numPos[0]]; 382 | digit2 = segLUT[numPos[1]]; 383 | digit1 = 0b01111100; // "P" for Pitch 384 | updateLED(); 385 | break; 386 | 387 | case 1: 388 | if (digitalRead(STARTBTN) == 0) 389 | { 390 | delay(200); 391 | switch (countingMode) 392 | { 393 | case 0: 394 | countingMode = 1; 395 | count = 0; 396 | displayBuf = 0; 397 | break; 398 | case 1: 399 | countingMode = 0; 400 | count = 0; 401 | displayBuf = 0; 402 | break; 403 | } 404 | } 405 | if (digitalRead(SETBTN) == 0) 406 | { 407 | delay(200); 408 | mode3state = 2; 409 | } 410 | if(countingMode == 0){ 411 | digit1 = 0b00100100; // I 412 | digit2 = 0b00001110; // n 413 | digit3 = 0b00000111; // v 414 | }else{ 415 | digit1 = 0b00011111; // d 416 | digit2 = 0b00100100; // I 417 | digit3 = 0b01101011; // S 418 | } 419 | updateLED(); 420 | break; 421 | 422 | case 2: 423 | // Check EEPROM to see if we've changed the settings 424 | // and if we have, save the new ones 425 | byte nvmPitch, nvmMode; 426 | EEPROM.get(EEPROM_ADDR_PITCH, nvmPitch); 427 | EEPROM.get(EEPROM_ADDR_MODE, nvmMode); 428 | if (nvmPitch != pitch) 429 | { 430 | EEPROM.put(EEPROM_ADDR_PITCH, pitch); 431 | } 432 | if (nvmMode != countingMode) 433 | { 434 | EEPROM.put(EEPROM_ADDR_MODE, countingMode); 435 | } 436 | deviceMode = returnMode; // Return to whichever mode sent us here 437 | break; 438 | } 439 | 440 | } 441 | } 442 | 443 | // This method takes the int stored in displayBuf and 444 | // shoves it into numPositions, which results in the int 445 | // being split into digits. Each digit is fetched from the 446 | // result array numPos[], translated into a String of LED 447 | // segment states by segLUT[] and assigned to a 448 | // display digit 449 | void translateSegments(int displayBuf) 450 | { 451 | numPositions(displayBuf); 452 | digit3 = segLUT[numPos[0]]; 453 | digit2 = segLUT[numPos[1]]; 454 | digit1 = segLUT[numPos[2]]; 455 | } 456 | 457 | // This method is called to "scan" the 7-seg once. In order to 458 | // achieve the Persistence of Vision effect necessary to make the 459 | // display visible, this method needs to be called as often as possible. 460 | // In order to keep BOM costs low, we aren't using any external comparators 461 | // which means we need to use the ADCs on the uC. This also means that 462 | // we can't update our counter in an interrupt. The only alternative 463 | // is to poll the IR interruptors as often as possible. Luckily, we 464 | // need to be busy periodically between updating each digit of the 465 | // display, so we use that time to do our counting. If we don't need to 466 | // be coounting, we busywait instead. 467 | void updateLED() 468 | { 469 | 470 | for (int i = 0; i < 7; i++) 471 | { 472 | digitalWrite(i, bitRead(digit1, 6-i)); 473 | } 474 | 475 | digitalWrite(DIGIT1_CATHODE, 1); 476 | if (deviceMode == 1) 477 | { 478 | updateCount(); 479 | } 480 | else 481 | { 482 | delayMicroseconds(scanDelay); 483 | } 484 | digitalWrite(DIGIT1_CATHODE, 0); 485 | 486 | for (int i = 0; i < 7; i++) 487 | { 488 | digitalWrite(i, bitRead(digit2, 6-i)); 489 | } 490 | 491 | digitalWrite(DIGIT2_CATHODE, 1); 492 | if (deviceMode == 1) 493 | { 494 | updateCount(); 495 | } 496 | else 497 | { 498 | delayMicroseconds(scanDelay); 499 | } 500 | digitalWrite(DIGIT2_CATHODE, 0); 501 | 502 | for (int i = 0; i < 7; i++) 503 | { 504 | digitalWrite(i, bitRead(digit3, 6-i)); 505 | } 506 | 507 | digitalWrite(DIGIT3_CATHODE, 1); 508 | if (deviceMode == 1) 509 | { 510 | updateCount(); 511 | } 512 | else 513 | { 514 | delayMicroseconds(scanDelay); 515 | } 516 | digitalWrite(DIGIT3_CATHODE, 0); 517 | } 518 | 519 | // This method takes an integer as an argument and returns 520 | // an array of digits organized by decimal place. 521 | void numPositions(int num) 522 | { 523 | for (int i = 0; i < 10; i++) 524 | { 525 | numPos[i] = 0; 526 | } 527 | byte pos = 0; 528 | while (num != 0) 529 | { 530 | numPos[pos] = num % 10; 531 | num = num / 10; 532 | pos++; 533 | } 534 | return; 535 | } 536 | 537 | // This is the function that actually deals with the ADCs 538 | // and turns blinking lights into parts counts. There are two 539 | // modes we can use to count: 540 | // Mode 0 is "Inventory Mode" 541 | // In Inventory Mode, we use only one IR interruptor. This is 542 | // faster because we only need to read one ADC and the decision-making 543 | // is simpler. Also, because it's direction agnostic, it correctly 544 | // handles end/start of tape. 545 | // Mode 1 is "Dispense Mode" 546 | // In Dispense Mode we use both IR interruptors to create an encoder 547 | // with the carrier tape. This allows us to determine the direction 548 | // of the tape at the expense of counting more slowly. Also, because 549 | // end/start of tape transitions look identical to motion in the 550 | // opposite direction, we can't correctly count end/start of tape. 551 | void updateCount() 552 | { 553 | 554 | if (countingMode == 1) 555 | { 556 | 557 | /**************** Dispense Mode ****************/ 558 | // Fetch the ADC 559 | int adc_a = analogRead(IRSENSOR_A); 560 | int adc_b = analogRead(IRSENSOR_B); 561 | 562 | // Here we create a deadzone between high and low 563 | // sensor readings to prevent miscounting. Theoretically, 564 | // you don't need to do this, but since this device operates 565 | // in meatspace, it's possible for sensor values to fluctuate 566 | // even if the tape isn't moving. Without deadzone, it was 567 | // possible to occlude the sensor just enough for it to start 568 | // "counting" parts at 1/2 polling speed. 569 | // The state values may look like nonsense but it's really just 570 | // assigning the state of each IR interruptor to a separate bit in 571 | // a two bit binary number. This makes state transitions easier to 572 | // track 573 | if (adc_a > 100) 574 | { 575 | state_a = 0b01; 576 | } 577 | else if (adc_a < 50) 578 | { 579 | state_a = 0b00; 580 | } 581 | if (adc_b > 100) 582 | { 583 | state_b = 0b10; 584 | } 585 | else if (adc_b < 50) 586 | { 587 | state_b = 0b00; 588 | } 589 | 590 | byte state_current = state_a + state_b; 591 | 592 | // If the state we just measured is different than the last time we were 593 | // polled, it means the tape has moved! Time to count! 594 | if (state_current != state_previous) 595 | { 596 | // The state transitions for tape moving "up" are: 597 | // 00 01 11 10 598 | // and for a tape moving "down" are: 599 | // 00 10 11 01 600 | // but because of the geometry involved, the "00" 601 | // state is very short, we shouldn't rely on detecting 602 | // it. So we only increment/decrement on the transition 603 | // out of "11" which is our longest state. 604 | if (state_previous == 0b11) 605 | { 606 | switch (state_current) 607 | { 608 | case 0b01: 609 | count++; 610 | // We don't keep track of which way we're counting 611 | // so instead we just count into the negative and 612 | // display the absolute value 613 | displayBuf = abs(count) * ratio; // multiply by hole-to-part ratio 614 | break; 615 | case 0b10: 616 | count--; 617 | displayBuf = abs(count) * ratio; 618 | break; 619 | } 620 | } 621 | state_previous = state_current; 622 | } 623 | 624 | } 625 | else 626 | { 627 | /**************** Inventory Mode ****************/ 628 | // Fetch the ADC 629 | int adc_a = analogRead(IRSENSOR_A); 630 | 631 | // Create a bool to store the sensor state 632 | bool bool_state_current; 633 | 634 | // We need to do the deadzone trick here as well for stability 635 | if (adc_a > 100) 636 | { 637 | bool_state_current = 1; 638 | } 639 | else if (adc_a < 50) 640 | { 641 | bool_state_current = 0; 642 | } 643 | 644 | // If the state we just measured is different than the last time we were 645 | // polled, it means the tape has moved! Time to count! 646 | if (bool_state_current != bool_state_previous) 647 | { 648 | if (bool_state_current == 1) 649 | { 650 | count++; 651 | displayBuf = count * ratio; // multiply by hole-to-part ratio 652 | } 653 | bool_state_previous = bool_state_current; 654 | } 655 | } 656 | } 657 | 658 | void selfTest() 659 | { 660 | byte pass = 0; 661 | 662 | for (byte i = 0; i < 10; i++) 663 | { 664 | digitalWrite(IRLED, 1); 665 | delay(20); 666 | if ( analogRead(IRSENSOR_A) > 100 && analogRead(IRSENSOR_B) > 100 ) 667 | { 668 | pass++; 669 | } 670 | digitalWrite(IRLED, 0); 671 | delay(20); 672 | if ( analogRead(IRSENSOR_A) < 50 && analogRead(IRSENSOR_B) < 50 ) 673 | { 674 | pass++; 675 | } 676 | } 677 | 678 | if (pass < 15) 679 | { 680 | digit1 = 0b00101111; // b 681 | digit2 = 0b01111110; // A 682 | digit3 = 0b00011010; // t 683 | for(int i = 0; i < 500; i++){updateLED();} 684 | digit1 = 0b01101101; // E 685 | digit2 = 0b00001100; // r 686 | digit3 = 0b00001100; // r 687 | for(int i = 0; i < 500; i++){updateLED();} 688 | } 689 | 690 | digitalWrite(IRLED, 0); 691 | 692 | return; 693 | } 694 | -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/BeanCounter_V10.ino.hex: -------------------------------------------------------------------------------- 1 | :1000000033C04DC04CC04BC04AC049C0DBC247C022 2 | :1000100046C045C044C043C042C041C040C03FC0CC 3 | :100020003EC03DC03CC000003A00370000003B002D 4 | :10003000380000000000000000000003000400057C 5 | :100040000000000039003600010101010101010139 6 | :100050000202020202020202010204081020408091 7 | :10006000010204081020408011241FBECFE5D2E019 8 | :10007000DEBFCDBF10E0A0E6B0E0E0EFFDE002C0E3 9 | :1000800005900D92A237B107D9F720E0A2E7B0E0C2 10 | :1000900001C01D92A039B207E1F7DED2A7C6B0CFEA 11 | :1000A0008F7787B987B187B9369A3699FECF84B1F1 12 | :1000B00095B108958230910538F0880F991F880F07 13 | :1000C000991F05970197F1F708953FB7F89480912C 14 | :1000D000780090917900A0917A00B0917B0022B7CE 15 | :1000E00008B601FE05C02F3F19F00196A11DB11DF4 16 | :1000F0003FBFBA2FA92F982F8827BC01CD01620FCF 17 | :10010000711D811D911D42E0660F771F881F991F89 18 | :100110004A95D1F70895CF92DF92EF92FF92CF9355 19 | :10012000DF936B017C01D1DFEB01CFDF6C1B7D0B1B 20 | :10013000683E7340A0F0C114D104E104F10439F425 21 | :10014000DF91CF91FF90EF90DF90CF90089581E005 22 | :10015000C81AD108E108F108C851DC4FE6CFC11434 23 | :10016000D104E104F10409F7EBCFCF93DF93C09101 24 | :10017000810089E8CC2309F458C092DFEC0186E8BD 25 | :100180008FDFC536D105ECF021E020936100853684 26 | :100190009105E4F082E080936000C091610080915D 27 | :1001A0006000C80F80917200C81741F0833021F4BD 28 | :1001B000C13089F0C23091F1C0937200DF91CF91CC 29 | :1001C0000895E29724F710926100E1CFC2972CF7CF 30 | :1001D00010926000E2CF60917F00709180006F5FAD 31 | :1001E0007F4F7093800060937F0077FF03C071950D 32 | :1001F00061957109072E000C880B990BD9D42091B9 33 | :1002000063003091640040916500509166005CD5B8 34 | :100210009CD470937E0060937D00CECF60917F0070 35 | :100220007091800061507109DCCF3ADF853691050D 36 | :100230000CF0C1E0809162008C1709F4BFCFCC2391 37 | :10024000E9F060917F00709180006F5F7F4F709345 38 | :10025000800060937F00072E000C880B990BA8D4B8 39 | :1002600020916300309164004091650050916600D8 40 | :100270002BD56BD470937E0060937D00C093620099 41 | :100280009DCFCF93DF93E5E8F0E0119220E0EF38C7 42 | :10029000F207D9F720E0CAE0D0E0009751F0E22F52 43 | :1002A000F0E0EB57FF4FBE017AD58083CB012F5F83 44 | :1002B000F4CFDF91CF910895E4DFA5E8B0E0EC91B1 45 | :1002C000F0E0E859FF4F8081809384001196EC9113 46 | :1002D0001197F0E0E859FF4F8081809383001296D8 47 | :1002E000EC91F0E0E859FF4F8081809382000895FF 48 | :1002F000CF93DF93EB01ABD38883CE01DF91CF9116 49 | :10030000089590E0FC01E85AFF4F2491FC01E85B5E 50 | :10031000FF4FE491EE2371F0F0E0EE0FFF1FEE5B74 51 | :10032000FF4FA591B491EC91E22381E090E021F49C 52 | :1003300080E0089580E090E0089590E0FC01EE5C9C 53 | :10034000FF4F3491FC01E85AFF4F2491FC01E85B18 54 | :10035000FF4FE491EE23C1F0332329F03330A9F4A9 55 | :1003600087B58F7787BDF0E0EE0FFF1FE45DFF4F8D 56 | :10037000A591B4918FB7611112C0F8949C91E22FAE 57 | :10038000E095E923EC938FBF0895343019F487B5D5 58 | :100390008F7DE8CF353039F787B5877FE3CFF89485 59 | :1003A000EC91E22BEFCFFF920F931F93CF93DF934C 60 | :1003B000D0E0C0E006E010E06091820070E0C8018B 61 | :1003C0008C1B9D0B02C0759567958A95E2F761704D 62 | :1003D0008C2FB3DF2196C730D10571F761E088E03B 63 | :1003E000ACDFF0908F0081E0F8124AC0BEDE60E022 64 | :1003F00088E0A3DF10E000E0C6E0D0E06091830079 65 | :1004000070E0CE01801B910B02C0759567958A95AF 66 | :10041000E2F76170802F91DF0F5F1F4F07301105EA 67 | :1004200069F761E089E089DF81E0F8122DC09DDE87 68 | :1004300060E089E082DFD0E0C0E006E010E060919B 69 | :10044000840070E0C8018C1B9D0B02C075956795F8 70 | :100450008A95E2F761708C2F70DF2196C730D10545 71 | :1004600071F761E08AE069DF81E0F81211C07DDE9A 72 | :1004700060E08AE0DF91CF911F910F91FF905DCFF7 73 | :1004800084EF91E017DEB3CF84EF91E013DED0CF9D 74 | :1004900084EF91E00FDEECCFCF93DF93DAE0C0E0A2 75 | :1004A00061E08BE04ADF64E170E080E090E033DE01 76 | :1004B00089E8F6DD8536910534F086E8F1DD85368C 77 | :1004C00091050CF0CF5F60E08BE037DF64E170E016 78 | :1004D00080E090E020DE89E8E3DDC2972CF486E836 79 | :1004E000DFDDC2970CF4CF5FD150D1F6CF30D8F416 80 | :1004F0008FE2809382008EE7809383008AE180936D 81 | :100500008400C4EFD1E04FDF2197E9F78DE68093B7 82 | :1005100082008CE08093830080938400C4EFD1E05C 83 | :1005200042DF2197E9F760E08BE0DF91CF9105CFC3 84 | :10053000CF93DF9387FF06C08F77833018F0873023 85 | :1005400040F58F5F90E0FC01E85AFF4F2491885BF3 86 | :100550009F4FFC0184918823C9F090E0880F991F78 87 | :10056000FC01EA5DFF4FA591B491FC01E45DFF4FF2 88 | :10057000C591D491611113C09FB7F8948C912095C7 89 | :1005800082238C938881282328839FBFDF91CF917A 90 | :1005900008958B3010F48B5FD5CF80E0D3CF6230DD 91 | :1005A00051F49FB7F8943C91822F809583238C93CC 92 | :1005B000E8812E2BE9CF8FB7F894EC912E2B2C935A 93 | :1005C0008FBFE4CF1F920F920FB60F9211242F937B 94 | :1005D0003F938F939F93AF93BF93809174009091BB 95 | :1005E0007500A0917600B09177003091730023E000 96 | :1005F000230F2D3768F126E8230F0296A11DB11DA8 97 | :10060000209373008093740090937500A0937600FC 98 | :10061000B09377008091780090917900A0917A0052 99 | :10062000B0917B000196A11DB11D8093780090933D 100 | :100630007900A0937A00B0937B00BF91AF919F9116 101 | :100640008F913F912F910F900FBE0F901F90189593 102 | :100650000196A11DB11DD4CFCF93DF9300D0CDB7AC 103 | :10066000DEB793E093BF789489B7826089BF90BF6B 104 | :1006700081E087BD86BD87E08FBD87E886B910E041 105 | :1006800061E0812F55DF60E0812F57DE1F5F1C3056 106 | :10069000B9F762E08CE04CDF62E08DE049DF60E0BA 107 | :1006A00089E846DF60E086E843DFBE016E5F7F4F8A 108 | :1006B00090E080E01DDEBE016F5F7F4F81E090E043 109 | :1006C00017DE6A818FEF860F8230B0F46093670087 110 | :1006D00070E090E080E06CD29B01AC0160E070E0E3 111 | :1006E00080E890E4CAD160936300709364008093C3 112 | :1006F00065009093660008C0862F877F843031F3B1 113 | :10070000683021F3603111F38981811129C0109281 114 | :10071000810062E370E080E090E0FDDCBDDE62E33A 115 | :1007200070E080E090E0F7DC53E0F52E02E06FE14E 116 | :10073000D62E74E2E72EEBE6CE2EFEE0BF2EA7E02B 117 | :10074000AA2E80918F00813009F448C070F0823069 118 | :1007500009F47AC0833009F49BC010928F00F1CF66 119 | :100760008130B9F680938100D4CF8CE0CADD892B2B 120 | :1007700031F400938F0081E080937C00E2CF60E051 121 | :100780008BE0DBDD10E09924939480918F00811140 122 | :10079000D8CF1F5F08DE8CE0B4DD892B39F464EF1D 123 | :1007A00071E080E090E0B7DC90928F008DE0A9DDF1 124 | :1007B000892B49F464EF71E080E090E0ACDCF092CA 125 | :1007C0008F0010927C001E3730F080917D00909158 126 | :1007D0007E0072DDDACF10928200D7CF8CE091DDFF 127 | :1007E000892B29F400938F0010927C00AACF61E03E 128 | :1007F0008BE0A3DD62E370E080E090E08CDC11E050 129 | :1008000080918F00813009F09CCFCDDD8CE079DDC7 130 | :10081000892B39F464EF71E080E090E07CDC109289 131 | :100820008F008DE06EDD892B49F464EF71E080E08C 132 | :1008300090E071DCF0928F0010937C0080917D003D 133 | :1008400090917E0039DDDCCF80918F00823009F0FD 134 | :1008500078CF44E6842E912CA6DD81E0881A910899 135 | :10086000D9F76CE271E080E090E055DC8CE049DD86 136 | :10087000019751F711DE1092800010927F001092C4 137 | :100880007E0010927D0080917C0080938F00DCCFF1 138 | :1008900010E08CE7982E8824839498E0792E20E14C 139 | :1008A000622E34E0532E80918F00833009F049CFBF 140 | :1008B000113009F469C0123009F49CC08CE021DDCC 141 | :1008C000892B31F568EC70E080E090E024DC8091C9 142 | :1008D0006700843009F44FC0F0F5813009F445C059 143 | :1008E000823009F445C06091670070E090E080E0DC 144 | :1008F0005FD19B01AC0160E070E080E890E4BDD086 145 | :100900006093630070936400809365009093660029 146 | :100910008DE0F7DC10E0892B31F468EC70E080E0CA 147 | :1009200090E0F9DB11E08091670090E0AADCE091B3 148 | :100930008500F0E0E859FF4F808180938400E091CA 149 | :100940008600F0E0E859FF4F808180938300909209 150 | :10095000820029DDA8CF8C3089F0803191F0883079 151 | :1009600011F68CE080936700BECF00936700BBCF89 152 | :1009700050926700B8CF70926700B5CF6092670061 153 | :10098000B2CF80926700AFCF8CE0BBDC892B99F4AB 154 | :1009900068EC70E080E090E0BEDB80918100813007 155 | :1009A000F9F0109381001092800010927F00109255 156 | :1009B0007E0010927D008DE0A4DC892B31F468EC80 157 | :1009C00070E080E090E0A7DB12E08091810081116F 158 | :1009D0000AC0E0928200B0928300A0928400B9CF56 159 | :1009E00010928100E0CFD0928200E0928300C0920A 160 | :1009F0008400AFCFBE016E5F7F4F90E080E078DC77 161 | :100A0000BE016F5F7F4F81E090E072DC4090670035 162 | :100A10008A81841549F090E080E019D0481621F0D1 163 | :100A2000642D90E080E01BD04090810089814816C1 164 | :100A300049F081E090E00BD0481621F0642D81E070 165 | :100A400090E00DD080917C0080938F002CCFE199B5 166 | :100A5000FECF9FBB8EBBE09A99278DB30895262FBA 167 | :100A6000E199FECF1CBA9FBB8EBB2DBB0FB6F8948D 168 | :100A7000E29AE19A0FBE019608950CD0EBC0E3D044 169 | :100A800040F0DAD030F021F45F3F19F0CCC05111C2 170 | :100A900015C1CFC0F0D098F39923C9F35523B1F312 171 | :100AA000951B550BBB27AA2762177307840738F0DD 172 | :100AB0009F5F5F4F220F331F441FAA1FA9F333D03C 173 | :100AC0000E2E3AF0E0E830D091505040E695001CF0 174 | :100AD000CAF729D0FE2F27D0660F771F881FBB1FAC 175 | :100AE000261737074807AB07B0E809F0BB0B802D86 176 | :100AF000BF01FF2793585F4F2AF09E3F510568F0D2 177 | :100B000092C0DCC05F3FECF3983EDCF386957795AE 178 | :100B10006795B795F7959F5FC9F7880F911D9695D3 179 | :100B2000879597F90895E1E0660F771F881FBB1F2F 180 | :100B3000621773078407BA0720F0621B730B840BDC 181 | :100B4000BA0BEE1F88F7E095089504D06894B111B0 182 | :100B5000B5C0089598D088F09F5790F0B92F992785 183 | :100B6000B751A0F0D1F0660F771F881F991F1AF0B8 184 | :100B7000BA95C9F712C0B13081F09FD0B1E00895A5 185 | :100B80009CC0672F782F8827B85F39F0B93FCCF326 186 | :100B9000869577956795B395D9F73EF490958095AE 187 | :100BA000709561957F4F8F4F9F4F0895E89409C0CE 188 | :100BB00097FB3EF490958095709561957F4F8F4F90 189 | :100BC0009F4F9923A9F0F92F96E9BB279395F695A6 190 | :100BD000879577956795B795F111F8CFFAF4BB0F24 191 | :100BE00011F460FF1BC06F5F7F4F8F4F9F4F16C088 192 | :100BF000882311F096E911C0772321F09EE8872F12 193 | :100C0000762F05C0662371F096E8862F70E060E0CD 194 | :100C10002AF09A95660F771F881FDAF7880F969546 195 | :100C2000879597F9089597F99F6780E870E060E0ED 196 | :100C300008959FEF80EC089500240A941616170675 197 | :100C400018060906089500240A94121613061406BD 198 | :100C500005060895092E0394000C11F4882352F020 199 | :100C6000BB0F40F4BF2B11F460FF04C06F5F7F4FD8 200 | :100C70008F4F9F4F089557FD9058440F551F59F0BF 201 | :100C80005F3F71F04795880F97FB991F61F09F3F79 202 | :100C900079F087950895121613061406551FF2CFA2 203 | :100CA0004695F1DF08C0161617061806991FF1CFF2 204 | :100CB00086957105610508940895E894BB27662719 205 | :100CC0007727CB0197F908950AD0C4CFB5DF28F074 206 | :100CD000BADF18F0952309F0A6CFABCFEFCFCBDF6B 207 | :100CE000A8F39923D9F35523C9F3950F50E0551F65 208 | :100CF000AA27EE27FF27BB2700240894679520F436 209 | :100D0000E20FF31FB41F0A1E220F331F441FAA1F36 210 | :100D10006695A9F7779530F4F30FB41F0A1E121EDB 211 | :100D200008F46395330F441FAA1F221F769599F785 212 | :100D3000879520F4B40F0A1E121E631F440FAA1FCA 213 | :100D4000221F331F8695A9F7862F712D602D112440 214 | :100D50009F5750408AF0E1F088234AF0EE0FFF1FC2 215 | :100D6000BB1F661F771F881F91505040A9F79E3FF9 216 | :100D7000510570F058CFA2CF5F3FECF3983EDCF303 217 | :100D8000869577956795B795F795E7959F5FC1F736 218 | :100D9000FE2B880F911D9695879597F9089597FBDF 219 | :100DA000072E16F4009406D077FD08D00BD007FC70 220 | :100DB00005D03EF4909581959F4F0895709561956B 221 | :100DC0007F4F0895AA1BBB1B51E107C0AA1FBB1F81 222 | :100DD000A617B70710F0A61BB70B881F991F5A95C7 223 | :100DE000A9F780959095BC01CD010895F894FFCFA7 224 | :100DF0000201010000803F0477245D5B3A6B6F5273 225 | :020E00007F7AF7 226 | :00000001FF 227 | -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/avrdude.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/firmware/BeanCounter_V10/avrdude.exe -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/debug.cfg: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-or-later 2 | # 3 | # Example OpenOCD configuration file for ESP32-WROVER-KIT board. 4 | # 5 | # For example, OpenOCD can be started for ESP32 debugging on 6 | # 7 | # openocd -f board/esp32-wrover-kit-3.3v.cfg 8 | # 9 | 10 | # Source the JTAG interface configuration file 11 | source [find interface/ftdi/esp32_devkitj_v1.cfg] 12 | set ESP32_FLASH_VOLTAGE 3.3 13 | # Source the ESP32 configuration file 14 | source [find target/esp32.cfg] 15 | -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/debug_custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "name":"Arduino on ESP32", 3 | "toolchainPrefix":"xtensa-esp32-elf", 4 | "svdFile":"esp32.svd", 5 | "request":"attach", 6 | "postAttachCommands":[ 7 | "set remote hardware-watchpoint-limit 2", 8 | "monitor reset halt", 9 | "monitor gdb_sync", 10 | "thb setup", 11 | "c" 12 | ], 13 | "overrideRestartCommands":[ 14 | "monitor reset halt", 15 | "monitor gdb_sync", 16 | "thb setup", 17 | "c" 18 | ] 19 | } -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/empty_all.hex: -------------------------------------------------------------------------------- 1 | :0200000002C03C 2 | :00000001FF 3 | -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/libusb0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/firmware/BeanCounter_V10/libusb0.dll -------------------------------------------------------------------------------- /firmware/BeanCounter_V10/programming_script.bat: -------------------------------------------------------------------------------- 1 | @echo BeanCounter Firmware Programming Script v01 2 | 3 | :begin 4 | 5 | pause 6 | 7 | start /B /wait .\avrdude -C.\avrdude.conf -v -pattiny861 -cusbtiny -B8 -e -Uefuse:w:0xFF:m -Uhfuse:w:0b11010111:m -Ulfuse:w:0xF1:m -Uflash:w:.\empty_all.hex:i 8 | 9 | start /B /wait .\avrdude -C.\avrdude.conf -v -pattiny861 -cusbtiny -B8 -Uflash:w:.\BeanCounter_V10.ino.hex:i 10 | 11 | GOTO begin -------------------------------------------------------------------------------- /hardware/Production/BeanCounter-Gerber.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/hardware/Production/BeanCounter-Gerber.zip -------------------------------------------------------------------------------- /hardware/Production/BeanCounter-MountSMD.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/hardware/Production/BeanCounter-MountSMD.zip -------------------------------------------------------------------------------- /hardware/Production/BeanCounter-centroids.csv: -------------------------------------------------------------------------------- 1 | Screaming Circuits SMD component position file. 2 | Created by Centroid_ScreamingCircuits_smd.ulp 1.2.0. 3 | 4 | Centroid Data for pc board: "BeanCounter-Panel.brd" as of: 8/5/2022 2:25 AM 5 | Measurements are in inches. Comma delimited 6 | Only surface mount components included 7 | 8 | RefDes,Layer,LocationX,LocationY,Rotation 9 | BT1,Bottom,4.076,0.510,270 10 | BT2,Bottom,4.076,2.810,270 11 | C1,Top,0.990,0.300,270 12 | C2,Top,1.440,0.500,90 13 | C3,Top,1.040,0.600,270 14 | C4,Top,0.990,2.600,270 15 | C5,Top,1.440,2.800,90 16 | C6,Top,1.040,2.900,270 17 | D1,Top,0.785,1.855,90 18 | D1S1,Top,2.190,0.900,0 19 | D1S2,Top,1.990,0.700,90 20 | D1S3,Top,1.990,3.000,90 21 | D1S4,Top,2.190,0.500,0 22 | D1S5,Top,1.990,0.300,90 23 | D1S6,Top,2.390,0.300,90 24 | D1S7,Top,2.190,0.100,0 25 | D1S8,Top,1.990,2.600,90 26 | D1S9,Top,2.390,2.600,90 27 | D1S10,Top,2.190,3.200,0 28 | D1S11,Top,2.190,2.800,0 29 | D1S12,Top,2.190,2.400,0 30 | D2,Top,0.785,4.155,90 31 | D2S1,Top,2.890,0.900,0 32 | D2S2,Top,2.690,0.700,90 33 | D2S3,Top,3.090,0.700,90 34 | D2S4,Top,2.890,0.500,0 35 | D2S5,Top,2.690,0.300,90 36 | D2S6,Top,3.090,0.300,90 37 | D2S7,Top,2.890,0.100,0 38 | D2S8,Top,2.690,3.000,90 39 | D2S9,Top,3.090,3.000,90 40 | D2S10,Top,2.690,2.600,90 41 | D2S11,Top,3.090,2.600,90 42 | D2S12,Top,2.890,3.200,0 43 | D2S13,Top,2.890,2.800,0 44 | D2S14,Top,2.890,2.400,0 45 | D3,Top,0.786,1.580,270 46 | D3S1,Top,3.590,0.900,0 47 | D3S2,Top,3.390,0.700,90 48 | D3S3,Top,3.790,0.700,90 49 | D3S4,Top,3.590,0.500,0 50 | D3S5,Top,3.390,0.300,90 51 | D3S6,Top,3.790,0.300,90 52 | D3S7,Top,3.590,0.100,0 53 | D3S8,Top,3.390,3.000,90 54 | D3S9,Top,3.790,3.000,90 55 | D3S10,Top,3.390,2.600,90 56 | D3S11,Top,3.790,2.600,90 57 | D3S12,Top,3.590,3.200,0 58 | D3S13,Top,3.590,2.800,0 59 | D3S14,Top,3.590,2.400,0 60 | D4,Top,0.786,3.880,270 61 | DIS1,Top,2.390,3.000,90 62 | DIS3,Top,2.390,0.700,90 63 | E$1,Top,0.270,4.662,0 64 | E$2,Bottom,0.270,4.662,0 65 | E$3,Top,4.308,4.662,0 66 | E$4,Bottom,4.308,4.662,0 67 | E$5,Top,0.270,-0.212,0 68 | E$6,Bottom,0.270,-0.212,0 69 | Q1,Top,1.740,0.300,270 70 | Q2,Top,1.740,0.150,270 71 | Q3,Top,1.740,0.450,270 72 | Q4,Top,1.740,2.600,270 73 | Q5,Top,1.740,2.450,270 74 | Q6,Top,1.740,2.750,270 75 | R1,Top,1.190,1.850,270 76 | R2,Top,1.690,0.900,0 77 | R3,Top,1.690,0.850,0 78 | R4,Top,1.690,0.800,0 79 | R5,Top,1.690,0.750,0 80 | R6,Top,1.690,0.700,0 81 | R7,Top,1.690,0.650,0 82 | R8,Top,1.690,0.600,0 83 | R9,Top,1.640,0.300,90 84 | R10,Top,1.640,0.150,90 85 | R11,Top,1.640,0.450,90 86 | R12,Top,1.040,0.300,90 87 | R13,Top,1.440,0.350,90 88 | R14,Top,0.990,0.600,90 89 | R15,Top,1.191,1.573,90 90 | R16,Top,1.690,3.200,0 91 | R17,Top,1.690,3.150,0 92 | R18,Top,1.690,3.100,0 93 | R19,Top,1.690,3.050,0 94 | R20,Top,1.690,3.000,0 95 | R21,Top,1.690,2.950,0 96 | R22,Top,1.690,2.900,0 97 | R23,Top,1.640,2.600,90 98 | R24,Top,1.640,2.450,90 99 | R25,Top,1.640,2.750,90 100 | R26,Top,1.040,2.600,90 101 | R27,Top,1.440,2.650,90 102 | R28,Top,0.990,2.900,90 103 | R29,Top,1.190,4.150,270 104 | R30,Top,1.191,3.873,90 105 | S1,Top,4.390,0.750,0 106 | S2,Top,4.390,0.250,0 107 | S3,Top,1.386,0.938,0 108 | S4,Top,4.390,3.050,0 109 | S5,Top,4.390,2.550,0 110 | S6,Top,1.386,3.238,0 111 | U$31,Top,0.785,0.297,180 112 | U$32,Top,0.785,0.573,180 113 | U$63,Top,0.785,2.598,180 114 | U$64,Top,0.785,2.873,180 115 | U1,Top,1.240,0.500,0 116 | U2,Top,1.240,2.800,0 117 | -------------------------------------------------------------------------------- /hardware/cad/BC_3DP_Simple_Resin v1.3mf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/hardware/cad/BC_3DP_Simple_Resin v1.3mf -------------------------------------------------------------------------------- /hardware/cad/BC_3DP_Simple_Resin v1.f3d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/hardware/cad/BC_3DP_Simple_Resin v1.f3d -------------------------------------------------------------------------------- /hardware/libs/IR.lbr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | <h3>LED</h3> 207 | <p></p> 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | >NAME 216 | >VALUE 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | <h3>Phototransistor</h3> 232 | <p>Low cost ambient light sensors, consisting of a phototransistor in miniature SMD packages. Output voltage varies with light intensity.</p> 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | >Name 258 | >Value 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | -------------------------------------------------------------------------------- /hardware/libs/OSHWBC.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml -------------------------------------------------------------------------------- /hardware/libs/logo.lbr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | logo#svg 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | -------------------------------------------------------------------------------- /hardware/libs/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 17 | 18 | 20 | image/svg+xml 21 | 23 | 24 | 25 | 26 | 27 | 30 | 34 | 38 | 42 | 46 | 50 | 54 | 58 | 62 | 66 | 70 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /hardware/libs/tape.lbr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | tape0603#svg 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /mechanical/BeanCounter_Rev11.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/mechanical/BeanCounter_Rev11.stl -------------------------------------------------------------------------------- /mechanical/BeanCounter_Tall_Slot_Mod.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/mechanical/BeanCounter_Tall_Slot_Mod.stl -------------------------------------------------------------------------------- /mechanical/BeanCounter_v10_Stock.f3d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/mechanical/BeanCounter_v10_Stock.f3d -------------------------------------------------------------------------------- /mechanical/BeanCounter_v10_Stock.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/mechanical/BeanCounter_v10_Stock.stl -------------------------------------------------------------------------------- /mechanical/BeanCounter_v11.f3z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NPoole/BeanCounter/e7033c2050229e9222a8c606cd63f7d90ea8b326/mechanical/BeanCounter_v11.f3z --------------------------------------------------------------------------------