{"id":19561622,"url":"https://github.com/thilinasatoru/item_counter","last_synced_at":"2025-02-26T08:44:26.220Z","repository":{"id":252727999,"uuid":"841261887","full_name":"ThilinaSatoru/Item_Counter","owner":"ThilinaSatoru","description":"IOT Project For Shopping Cart Item Counter.","archived":false,"fork":false,"pushed_at":"2024-09-08T15:32:06.000Z","size":267,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T22:53:45.086Z","etag":null,"topics":["hx711","iot","loadcell","nodemcu-esp8266","oled-display"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThilinaSatoru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-12T03:46:30.000Z","updated_at":"2024-09-08T15:32:09.000Z","dependencies_parsed_at":"2024-11-11T05:12:15.279Z","dependency_job_id":"7b7c080d-49ed-4260-86ec-2cc8a8ca22a2","html_url":"https://github.com/ThilinaSatoru/Item_Counter","commit_stats":null,"previous_names":["thilinasatoru/item_counter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThilinaSatoru%2FItem_Counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThilinaSatoru%2FItem_Counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThilinaSatoru%2FItem_Counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThilinaSatoru%2FItem_Counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThilinaSatoru","download_url":"https://codeload.github.com/ThilinaSatoru/Item_Counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240822608,"owners_count":19863302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hx711","iot","loadcell","nodemcu-esp8266","oled-display"],"created_at":"2024-11-11T05:12:05.722Z","updated_at":"2025-02-26T08:44:26.159Z","avatar_url":"https://github.com/ThilinaSatoru.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device Function\n\n1. As soon as the device starts it checks for configured `wifi` credentials and connects to wifi network.\n2. Then it starts reading the `weight scale` and waits for any weight adding to the scale. \n3. Once a weight add to the scale, it immediately increments the counter and displays in the screen. *Both add and remove will increment and decrement the counter acurately*.\n4. Mean while, if user press the `button` it will send the `current item count` and send it to the server. The `respose` from the server will be the `cashier No.` and will be displayed to the user. \n5. When the `cashier No.` displays the `Blue LED` will also turn `ON`.\n6. If user **switch the button again**, it will again show the current item count and the `Blue LED` turn `OFF`.\n\n# Device Schemetic\n\n![schemetic](device/schemetic.jpg)\n\n## Power Supply\n 1. There are 2  `18650 Lithium 3.7v` Batteries.\n 2. `DC-DC Regulator` and `7805 5v Regulator` converts the Voltage to stable `5v`.\n 3. The red 5v wire from regulator connects to `NodeMCU` Pin `VV` and Black wire connects to any `GND` pin. This powers the `NodeMCU` Module. The `Red LED` just indicates the power supply. \n 4. `NodeMCU` outputs `3.3v` for other pins.\n \n ## OLED Display\n  [More Info - 0.96 inch OLED Display with Arduino IDE](https://randomnerdtutorials.com/esp8266-0-96-inch-oled-display-with-arduino-ide/)\n\n\u003cimg src=\"device/img/ESP8266_oled_display_wiring.webp\" alt=\"schematic\" width=\"700\" height=\"500\"/\u003e\n\n 1. `OLED SDA` pin connects to `NodeMCU D2` pin.\n 2. `OLED SCL` pin connects to `NodeMCU D1` pin.\n 3. Red `3.3v` and Black `GND`.\n\n \u003e We’re using I2C communication protocol. The most suitable pins for I2C communication in the `NodeMCU` are `GPIO 5 (SCL)` and `GPIO 4 (SDA)`.\n\n ## Weight Sensor Digital Scale\n\n [More Info - NodeMCU with Load Cell and HX711 Amplifier (Digital Scale)](https://randomnerdtutorials.com/esp8266-load-cell-hx711/)\n\n 1. `HX711 DT` pin connects to `NodeMCU D6` pin.\n 2. `HX711 SCK` pin connects to `NodeMCU D7` pin.\n 3. Red `3.3v` and Black `GND`.\n\n![schemetic](device/img/wire%20the%20load%20cell.PNG)\n![schemetic](device/img/ESP8266-load-cell-diagram_bb.webp)\n\n\n## Switch and Blue LED\n 1. `Switch` connects to `NodeMCU D5` and `GND` pins.\n 2. `Blue LED` connects to `NodeMCU D8` and `GND` pins.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilinasatoru%2Fitem_counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthilinasatoru%2Fitem_counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilinasatoru%2Fitem_counter/lists"}