2FyZu

[Training Camp] [Internet of Things Practical Combat] Multifunctional Lighting Calendar Album

 
Overview

Based on STM32 master control, Tuya platform interaction, and controlled by mobile APP, it is an IoT electronic photo album that integrates multiple functions such as lighting, displaying photos, displaying calendar, and displaying weather:

Lighting part link: https://oshwhub.com/Cwen/duo-gong-neng-zhao-ming-xiang-ce

Tuya platform link: https://iot.tuya.com/pmg/summary?id=7safqbfxhaed2ju1

I have wanted to participate in Lichuang's training camp for a long time. I was very sad because I missed the summer training camp in other places during the summer. I was able to complete the summer training camp project after returning to school. I saw Lichuang's IoT training camp again and I became very excited. I signed up to join the group in one go. After looking at this project, I thought that it must be a big one, so I decisively chose STM32 as the main control.

When I was worried about how to process data because I didn’t know much about data structure, and whether I should learn about queues, Lichuang found a convenient partner like Tuya and provided an SDK transplant package. It was perfect! I started thinking about what kind of work I wanted to make. At this time, I looked at the memo next to my computer and thought that I could make an electronic one myself. Of course, just making memos can’t be considered a big work, so I thought of the ink screen on the open source platform. You can make a multifunctional IoT electronic photo album with more functions than it, integrating lighting, memo, displaying photos, displaying calendar, and displaying weather;

As soon as the idea came out, it was already two days before the opening ceremony. I started to purchase a display screen. It needed to be big, so I chose a 4-inch screen and bought a memory card module. After I bought it, I found that the screen had automatically changed. With memory card module@@@

The schematic diagram was drawn the day before the opening ceremony. Since the project was relatively large, I initially chose the 100-pin STMF103VET6. Later, I found that the 64-pin STM32F103RCT was enough. I changed the main control and readjusted the schematic diagram in one day. Half the time passed, and the opening ceremony began in the evening. As a result, the ruler of Lichuang EDA, which I had long admired, had not fallen into my hands for a long time. The next day I started drawing the PCB, and I used all 64 pins, and the wiring was completed. A very big problem was solved. I went to the laboratory at 8 o'clock and continued to draw it until 11 o'clock at night, revising and revising it. The next day, I finally finished the drawing before talking about PCB. When revising, only the PCB part was modified, which caused the schematic diagram to have some errors. Some of them were not modified. The next day, under my active request, Sister Xiaoju finally turned over my sign. Mo Gong commented on and corrected my schematic diagram, which made me realize a lot of mistakes. I used a toggle switch. I have never used it and I don’t know which pin is which. The pins were connected wrongly. I solved the problem under Zhou Gong’s patient guidance and replaced my buttons with small buttons. When I was drawing the WIFI module, I thought of drawing out the pins. It is convenient to use the development board for debugging. Because of the habit left over from PCB overturning in the past, this provides great convenience for subsequent debugging.

The lighting part was too big, so it was divided into two boards. I have been hesitant about adding a resistor to the lighting part. After the guidance of Mr. Bantang, I added a 47-ohm resistor, which doubled the number of welds--- --_------

After submitting the PCB, I started to learn how to configure the Tuya module, how to configure the network, and how to transplant the program. The Tuya module finally arrived on the evening of November 29th. The delivery was slow but the logistics was very fast. SF Express arrived in less than a day and the speed was good. Amazingly, after receiving the module, I started to use the serial port assistant to test it according to the guidance of the development manual. I connected the WiFi module to the TTL downloader with a flying cable to communicate with the serial port assistant. In the middle, there was a problem with my splitter, and it took me all night. It was not adjusted properly. The second one was changed to the USB interface on the computer. After following the steps to configure the network, I found that the EZ mode was not easy to use, but the AP mode configuration was still stable. Later I found that the association's WiFi was not stable, so I had to change it. a new one. After the serial port was debugged, I started debugging the program. I originally planned to reserve 2 days of debugging time, but I didn’t expect that the Tuya transplantation package was so easy to use that it took half a day to complete it! Love it, love it! Just let me come here to complete the project description. IMG_20201130_173522.jpg     First, use the display screen to display information instead of other displays. Tomorrow, Tuya's engineers will finish explaining the process and complete the final functional board. The board finally arrived on December 2. It took a whole day to complete the welding and the result was After a test, I found that half of the lighting panel was overturned, so it was self-contained, and the copper wire was displayed. However, without copper cladding, it was only half bright. (Later, I found out that I pasted and copied and the network was not modified except for the problem.) I quickly re-ordered the overturned one. I don’t know if I can make it to the board, but fortunately, the main control board and the other half of the lighting board are intact.-9ba3d09afedf91c.jpg

On December 3rd, I designed the main page and wrote the entire program structure. I just needed the second lighting board to arrive and Bantang to enter my screen @.@ Does anyone have any good pictures or good mottos that you can share with me? oh,

11.jpg


I completed the configuration of the APP in the evening, and the 30-day trial period is very good. I have never done app development before using this. Later, I will learn Android and try to use it when I write an APP of my own.


Screenshot_20201204_104543.jpgScreenshot_20201204_104601_com.cwen.aid.jpgScreenshot_20201204_113610.jpg

It's almost completed at this point (several bugs were discovered later). I'm going to make a demonstration video to see if the lighting board can be reached. I'll make a demonstration video when it arrives. There are activities on Saturday and I can't do it. I plan to do two today, Friday afternoon and Sunday. put a page on the screen,

IMG_20201206_221744.jpgIMG_20201206_221541.jpg     The page is ready. I have made a motto and a memo for the time being. I can add it if I have good ideas in the future. I originally wanted to wait for the other half of my lighting board to arrive and shoot a video together, but the logistics showed that it will only arrive on Monday afternoon. It seems that I couldn't catch up, so I took the picture first with this lighting board that can only half-light up. The lighting board is being updated when it arrives. I wanted to update the text on the screen in the APP, but I don't know how to transfer the text. I will try to improve the video in the future and finally add it. I created a website for my girlfriend, but I don’t know why the cloud function can’t be accessed. It may be because the server I’m using is too slow. I want to make my own shell. The cutting machine I bought hasn’t arrived yet. I’m waiting for the board. When the cutting machine arrives, I will know how to use an acrylic board to make a shell myself. When the time comes, I will update the actual picture and the attached video will be a functional demonstration! I hope Zhou Gongmo Gong and other big guys at Lichuang will comment and put forward suggestions for improvement. I will take them in time to improve the work! Finally, I would like to thank Lichuang EDA and Tuya for providing such a good learning opportunity. I look forward to the next training camp coming soon, and I will make more outstanding works! ! Thanks again to Lichuang EDA and Tuya for providing the platform and opportunities that make learning about the Internet of Things so fun and easy! ! The submission time of the work was delayed. I perfected the lighting board and re-shot the video. The weather update is only updated every half an hour, so I can only use the data from the last time. This is the first time I used a cutting machine to make the shell. It was too ugly to shoot. It’s useless when making videos. Let’s do 3D modeling and print one when I have time! There is an inexplicable bug in the side view. The screen cannot be initialized after powering on. Unplugging TX and RX can initialize successfully. Then plugging them back in has no effect. This bug bothered me deeply. I corrected it for two days this morning. I found the reason and modified it successfully. It turned out that heartbeat packets were sent all the time when the power was turned on. The initialization of the screen was only half completed. I added a function to determine whether the big loop is entered for the first time, and then start sending heartbeat packets when it is entered for the second time. package, so this BUG was solved with difficulty. After everything was basically completed, I started to fix some bugs, and released the time calibration and network configuration functions from the buttons, so that the time-lapse video is no longer visible on the program. After powering on, it automatically enters the AP network configuration, and it is turned on and off on the APP. Entering the distribution network mode, the dimming problem on the video was fixed and a time-lapse video with separate dimming was released. The dimming button was enlarged for easier operation. Now a battery and charging module are added. IMG_20201208_203432.jpgIMG_20201208_203424.jpg The front picture IMG_20201208_203417.jpgVID20201208172037.00_01_13_00.Still001.jpg

IMG_20201209_184258.jpg

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 01:23:20

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号