<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>#Pico — ELECROW - FORUM</title>
        <link>https://forum.elecrow.com/index.php?p=/</link>
        <pubDate>Tue, 07 Apr 2026 16:25:53 +0000</pubDate>
        <language>en</language>
            <description>#Pico — ELECROW - FORUM</description>
    <atom:link href="https://forum.elecrow.com/index.php?p=/discussions/tagged/pico/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Need a Basic Working Example for Elecrow CrowPanel Pico 2.8&quot; (ST7789)</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/26199/need-a-basic-working-example-for-elecrow-crowpanel-pico-2-8-st7789</link>
        <pubDate>Thu, 07 Aug 2025 22:36:20 +0000</pubDate>
        <category>Elecrow HMI Display</category>
        <dc:creator>Soundmit</dc:creator>
        <guid isPermaLink="false">26199@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>I’ve tried every possible way to get the Elecrow CrowPanel Pico 2.8" display working, but I haven’t succeeded. I followed the tutorial, installed the libraries provided in the guide, but nothing works.</p>

<p>I managed to write something to the display, but only by using an ILI9341 driver instead of the ST7789 it’s supposed to have — however, the text appeared mirrored. Anyway, I deleted everything, started from scratch, and now I no longer have the “semi-working” code.<br />
If I load the UF2 demo firmware, it works fine, but I can’t compile the demo myself.<br />
Could someone please share a very basic, working example?<br />
Eventually, I plan to try using it with LVGL.</p>
]]>
        </description>
    </item>
    <item>
        <title>How to Use Pico to Make Electronic hourglass --- RaspberryPiPico Kit</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/309/how-to-use-pico-to-make-electronic-hourglass-raspberrypipico-kit</link>
        <pubDate>Thu, 01 Sep 2022 02:42:28 +0000</pubDate>
        <category>Projects</category>
        <dc:creator>Elecrow</dc:creator>
        <guid isPermaLink="false">309@/index.php?p=/discussions</guid>
        <description><![CDATA[<h2><span style="color: blue;">Project Introduction:</span></h2>
Turn the encoder to set the time, and it will be displayed on the TM1637 4-Bits digital tube in real time. Press the button and the electronic hourglass starts working.
<img src="https://forum.elecrow.com/uploads/editor/jq/5d7723was788.png" alt="" />

<h2><span style="color: blue;">Material preparation: </span></h2>
Raspberry Pi Pico*1, USB Cable*1, Breadboard*1, Encoder*1, TM1637 4-Bits Digital Tube*1, Dupont line

<h2><span style="color: blue;">Circuit connection:</span></h2>
<img src="https://forum.elecrow.com/uploads/editor/gw/zz1u69adshdv.png" alt="" />
<img src="https://forum.elecrow.com/uploads/editor/tz/m5rnzbm3zkj8.png" alt="" />

<h2><span style="color: blue;">Library file installation:</span></h2>
Upload the "tm1637.py" library file to the Raspberry Pi Pico. 
<b>Step1:</b> Download tm1637.zip, unzip the file and copy tm1637.py to library folder.
<b>Step2:</b> Connect the Pico to Thonny with a USB cable;
<b>Step3:</b> Find the "tm1637.py" library in the file window;
<b>Step4:</b> Right-click and select "Upload to / " to start uploading the library file;
<b>Step5:</b> "tm1637.py" appears at bottom left, indicating that the upload is successful, and you can start running the program.

<h2><span style="color: blue;">Program analysis: Electronic Hourglass</span></h2>
<code>
from machine import Pin
from time import sleep
import tm1637

tm = tm1637.TM1637(clk=Pin(4), dio=Pin(5))
RoA_Pin = 0               # CLK
RoB_Pin = 1               # DT
Btn_Pin = 2                # SW

globalCounter = 0          # counter value
flag = 0                   # Whether the rotation flag occurs
Last_RoB_Status = 0       # DT state
Current_RoB_Status = 0    # CLK state

def setup():
    global clk_RoA
    global dt_RoB
    global sw_BtN
    
    clk_RoA =  Pin(RoA_Pin,Pin.IN)           
    dt_RoB = Pin(RoB_Pin,Pin.IN)              
    sw_BtN = Pin(Btn_Pin,Pin.IN, Pin.PULL_UP) 
    # Initialize the interrupt function, when the SW pin is 0, the interrupt is enabled
    sw_BtN.irq(trigger=Pin.IRQ_FALLING,handler=btnISR)

# Rotation code direction bit judgment function
def rotaryDeal():
    global flag                   
    global Last_RoB_Status
    global Current_RoB_Status
    global globalCounter         

    Last_RoB_Status = dt_RoB.value()   
    # Judging the level change of the CLK pin to distinguish the direction
    while(not clk_RoA.value()):       
        Current_RoB_Status = dt_RoB.value() 
        flag = 1                    # Rotation mark occurs
    if flag == 1:                     # The flag bit is 1 and a rotation has occurred
        flag = 0                     # Reset flag bit
        if (Last_RoB_Status == 0) and (Current_RoB_Status == 1):
            globalCounter = globalCounter + 1    # counterclockwise, positive
        if (Last_RoB_Status == 1) and (Current_RoB_Status == 0):
            globalCounter = globalCounter - 1     # Clockwise, negative

# Interrupt function, when the SW pin is 0, the interrupt is enabled
def btnISR(chn):
    global globalCounter
    globalCounter = 0 
    print ('globalCounter = %d' %globalCounter)
    while True:
    # Define a counter that changes every 1 second
        tm.number(globalCounter)
        globalCounter = globalCounter - 1
        sleep(1)
        if globalCounter == 0:
            break

def loop():
    global globalCounter  
    tmp = 0   
    while True:
        rotaryDeal()      
        if etmp != globalCounter:
            print ('globalCounter = %d' % globalCounter)
            tmp = globalCounter    
            tm.number(globalCounter)
            
if __name__ == '__main__':    
    setup() 
    loop()  </code>
<h2><span style="color: blue;">Click link below to watch video:</span></h2>
<span style="color: blue;"><a rel="nofollow" href="https://www.youtube.com/watch?v=Sl1dVGrHXFg">https://www.youtube.com/watch?v=Sl1dVGrHXFg</a></span>]]>
        </description>
    </item>
    <item>
        <title>CrowPanel (aka HMI) Pico Display-2.8 inch 320*240 Module TFT LCD Touchscreen</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/904/crowpanel-aka-hmi-pico-display-2-8-inch-320-240-module-tft-lcd-touchscreen</link>
        <pubDate>Sun, 27 Oct 2024 11:22:47 +0000</pubDate>
        <category>Elecrow HMI Display</category>
        <dc:creator>MattMan</dc:creator>
        <guid isPermaLink="false">904@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Hi, sorry I am very new so most likely this is me doing something silly, but I would really really appreciate some help.</p>

<p><strong>My unit</strong><br />
<a href="https://www.elecrow.com/crowpanel-pico-display-2-8-inch-320-240-module-tft-lcd-touchscreen-with-rp2040-support-c-c-micropython-lvgl.html" rel="nofollow">https://www.elecrow.com/crowpanel-pico-display-2-8-inch-320-240-module-tft-lcd-touchscreen-with-rp2040-support-c-c-micropython-lvgl.html</a></p>

<p>In short, I followed the videos and not getting anything on the display.  However if I connect to serial out i can see the touches come through in the Ardunio IDE.  So makes me think it's close..!<br />
I followed the instructions and installed the lv_conf.h into C:\Users\mattt\Documents\Arduino\libraries and the User_Setup.h into C:\Users\mattt\Documents\Arduino\libraries\TFT_eSPI I even double checked the pins against the schematic and I think they are right.</p>

<p>I followed these videos and used the files from Github<br />
<span data-youtube="youtube-5lLdKOjR-Lo?autoplay=1"><a rel="nofollow" href="https://www.youtube.com/watch?v=5lLdKOjR-Lo"><img src="https://img.youtube.com/vi/5lLdKOjR-Lo/0.jpg" width="640" height="385" border="0" alt="image" /></a></span></p>

<p>I can reload the base firmware and it works.</p>

<p>Github I used<br />
<a href="https://github.com/Elecrow-RD/CrowPanel-Pico-Display-Course-File/" rel="nofollow">https://github.com/Elecrow-RD/CrowPanel-Pico-Display-Course-File/</a></p>

<p>Base firmware from here works fine, display lights up etc.<br />
<a href="https://drive.google.com/drive/folders/1zDDchhVeBZR0WRQfW3EPjXdXyYWu1P50" rel="nofollow">https://drive.google.com/drive/folders/1zDDchhVeBZR0WRQfW3EPjXdXyYWu1P50</a></p>
]]>
        </description>
    </item>
    <item>
        <title>What should I do if the CrowPanel HMI Display I got does not work?</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/763/what-should-i-do-if-the-crowpanel-hmi-display-i-got-does-not-work</link>
        <pubDate>Mon, 17 Jun 2024 07:35:22 +0000</pubDate>
        <category>Elecrow HMI Display</category>
        <dc:creator>Elecrow</dc:creator>
        <guid isPermaLink="false">763@/index.php?p=/discussions</guid>
        <description><![CDATA[<p><strong>Question:</strong> The CrowPanel HMI screen I purchased is not working properly, what can I do to analyze the cause of the problem and find a solution to the problem?</p>

<ol>
<li><p>First, please confirm that when you receive and power the module, if the lvgl widgets demo is displayed on the screen.<br />
<img src="https://forum.elecrow.com/uploads/editor/w6/8dgnc1gtjllb.png" alt="" title="" /></p></li>
<li><p>Second, please follow the instructions(<a rel="nofollow" href="https://forum.elecrow.com/index.php?p=/discussion/510/how-to-install-the-factory-demo-firmware-with-flash-download-tool/p1?new=1" title="How to install the factory demo firmware with flash download tool?">How to install the factory demo firmware with flash download tool?</a>) to upload the firmware to the module and check if there's any content shown on the screen.</p></li>
<li><p>If the above two situations can display content, please make sure that the esp32 package version you installed in the arduino ide is not the latest. (The latest version may have some incompatibility issues. In order to make the program run normally, please use the same version 2.0.16 as in our tutorial. For the latest version, we will try our best to make adaptability updates)</p></li>
</ol>

<p>If the display fails in both of the above cases, the hardware may be damaged. Please send your problem description and order number to order@elecrow.com to request a replacement module.</p>

<p><a rel="nofollow" href="https://forum.elecrow.com/discussion/492/esp-terminal-esp32-hmi-display-faqs#latest" title="Back to FAQs">Back to FAQs</a></p>
]]>
        </description>
    </item>
    <item>
        <title>📢 RaspberryPi gear On Sale Now at Elecrow 🔥</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/447/raspberrypi-gear-on-sale-now-at-elecrow</link>
        <pubDate>Tue, 20 Jun 2023 03:17:31 +0000</pubDate>
        <category>Promotions</category>
        <dc:creator>Tammy_Elecrow</dc:creator>
        <guid isPermaLink="false">447@/index.php?p=/discussions</guid>
        <description><![CDATA[<div>
    <div>
        <a href="https://forum.elecrow.com/uploads/763/07ZLVFUV0OW1.jpg" rel="nofollow noopener" target="_blank">
            <img src="https://forum.elecrow.com/uploads/763/07ZLVFUV0OW1.jpg" alt="elecrow raspberrypi.jpg" />
        </a>
    </div>
</div>
<p><br /></p><h2>1️⃣  Raspberry Pi 4 Model B - 4GB </h2><div data-embedjson="{&quot;body&quot;:&quot;The excellent new features are that CPU upgrades 1.5G, reach 4GB RAM, BlueTooth 5.0, support up to 4 K dual display via 2 HDMI-compatible port, provides you wonderful Visual experience. Supports an extra 500mA of current, ensuring we have a full 1.2A for downstream USB devices, even under heavy CPU load. Particularly, dual-band 2.4\/5.0 GHz wireless LAN, Ethernet upgrades to Full-throughput Gigabit, faster than 3B+.&quot;,&quot;photoUrl&quot;:&quot;https:\/\/media-cdn.elecrow.com\/media\/catalog\/product\/cache\/6b78ac9ed927a3c2db42a3c84dab4ce5\/r\/a\/raspberry_pi_4_model_b-4gb_ram_1.jpg&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/raspberry-pi-4-model-b-4gb-ram.html?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot;Raspberry Pi 4 Model B - 4GB &quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-4-model-b-4gb-ram.html?idd=2">
        https://www.elecrow.com/raspberry-pi-4-model-b-4gb-ram.html?idd=2
    </a>
</div><p><br /></p><h2>2️⃣  Raspberry Pi 4 Model B - 8GB</h2><div data-embedjson="{&quot;body&quot;:&quot;Raspberry Pi 4 Model B - 8GB  Description:\r\nRaspberry Pi 4 is the latest product in the Raspberry Pi range. The excellent new features are that CPU upgrades 1.5G, cortex a72 architecture operation is 3 times that of Pi 3B+. Reach 4GB RAM, let you enjoy th&quot;,&quot;photoUrl&quot;:&quot;https:\/\/media-cdn.elecrow.com\/media\/catalog\/product\/cache\/6b78ac9ed927a3c2db42a3c84dab4ce5\/r\/a\/raspberry_pi_4_model_b_with_8gb_ram-1.jpg&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/raspberry-pi-4-model-b-8gb.html?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot;Raspberry Pi 4 Model B - 8GB &quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-4-model-b-8gb.html?idd=2">
        https://www.elecrow.com/raspberry-pi-4-model-b-8gb.html?idd=2
    </a>
</div><p><br /></p><h2>3️⃣ Raspberry Pi Pico W Development Board Raspberry Pi Pico Wireless</h2><div data-embedjson="{&quot;body&quot;:&quot;\r\nRaspberry Pi Pico W is the RP2040 with wireless and Bluetooth 5.2.\r\nDual-Core, 32-bit ARM Cortex M0+ Processor\r\nDrag and Drop Program loading method\r\nSupports CircuitPython, MicroPython, C, and C++ Programming Language\r\n&quot;,&quot;photoUrl&quot;:&quot;https:\/\/media-cdn.elecrow.com\/media\/catalog\/product\/cache\/6b78ac9ed927a3c2db42a3c84dab4ce5\/p\/i\/pico_w_1_1.jpg&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/raspberry-pi-pico-w-development-board-with-wireless-bluetooth.html?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot;Raspberry Pi Pico W Development Board Raspberry Pi Pico Wireless&quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-pico-w-development-board-with-wireless-bluetooth.html?idd=2">
        https://www.elecrow.com/raspberry-pi-pico-w-development-board-with-wireless-bluetooth.html?idd=2
    </a>
</div><h2><br /></h2><h2>4️⃣  Raspberry Pi Pico RP2040 Microcontroller Board</h2><div data-embedjson="{&quot;body&quot;:&quot;Tip: Our website provides a precise set of solderable headers for connecting the Raspberry Pi Pico to a breadboard or other circuit. Kit includes two 20-pin headers and one 3-pin header; 0.1\&quot; pin spacing.&quot;,&quot;photoUrl&quot;:&quot;https:\/\/media-cdn.elecrow.com\/media\/catalog\/product\/cache\/6b78ac9ed927a3c2db42a3c84dab4ce5\/r\/p\/rp2040-1.png&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/raspberry-pi-pico-rp2040-microcontroller-board.html?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot; Raspberry Pi Pico RP2040 Microcontroller Board&quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-pico-rp2040-microcontroller-board.html?idd=2">
        https://www.elecrow.com/raspberry-pi-pico-rp2040-microcontroller-board.html?idd=2
    </a>
</div><p><br /></p><h2>5️⃣  Raspberry Pi Zero</h2><div data-embedjson="{&quot;body&quot;:&quot;Raspberry Pi Zero&quot;,&quot;photoUrl&quot;:&quot;https:\/\/media-cdn.elecrow.com\/media\/catalog\/product\/cache\/6b78ac9ed927a3c2db42a3c84dab4ce5\/r\/a\/raspberry-pi-zero-1.jpg&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/raspberry-pi-zero.html?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot;Raspberry Pi Zero&quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-zero.html?idd=2">
        https://www.elecrow.com/raspberry-pi-zero.html?idd=2
    </a>
</div><h2><br /></h2><h2>6️⃣  Raspberry Pi 400 Personal Computer-US Version</h2><div data-embedjson="{&quot;body&quot;:&quot;Featuring a quad-core 64-bit processor, 4GB of RAM, wireless networking, dual-display output, and 4K video playback, as well as a 40-pin GPIO header, Raspberry Pi 400 is a powerful, easy-to-use computer built into a neat and portable keyboard.&quot;,&quot;photoUrl&quot;:&quot;https:\/\/media-cdn.elecrow.com\/media\/catalog\/product\/cache\/6b78ac9ed927a3c2db42a3c84dab4ce5\/r\/a\/raspberry_pi_400_personal_computer_5.jpg&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/raspberry-pi-400-personal-computer.html?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot;Raspberry Pi 400 Personal Computer-US Version&quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-400-personal-computer.html?idd=2">
        https://www.elecrow.com/raspberry-pi-400-personal-computer.html?idd=2
    </a>
</div><p><br /></p><h2>🚩 Check More RaspberryPi gear here 👇</h2><div data-embedjson="{&quot;body&quot;:&quot;Raspberry Pi is a small, capable and affordable computer that you can use to learn programming. Elecrow has developed several kits, shield and accessories.&quot;,&quot;url&quot;:&quot;https:\/\/www.elecrow.com\/mcu\/raspberry-pi.html?cat=123_raspberry-pi-main-board?idd=2&quot;,&quot;embedType&quot;:&quot;link&quot;,&quot;name&quot;:&quot;Rasberry pi | Raspberry pi display | Raspberry pi starter kits | Elecrow&quot;}">
    <a rel="nofollow" href="https://www.elecrow.com/mcu/raspberry-pi.html?cat=123_raspberry-pi-main-board?idd=2">
        https://www.elecrow.com/mcu/raspberry-pi.html?cat=123_raspberry-pi-main-board?idd=2
    </a>
</div><p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>Mechanical Keyboard Application - Musical Keyboard</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/338/mechanical-keyboard-application-musical-keyboard</link>
        <pubDate>Wed, 02 Nov 2022 08:16:57 +0000</pubDate>
        <category>Projects</category>
        <dc:creator>Eleanor</dc:creator>
        <guid isPermaLink="false">338@/index.php?p=/discussions</guid>
        <description><![CDATA[<div><img src="https://forum.elecrow.com/uploads/editor/zv/g8p9mx3u6sjl.png" alt="" /></div>
This article shows how to use multiple mechanical keyboards to simulate piano keys by pico control, producing different tones.Since the mechanical keyboard we use only has 12 keys, we only set tones between C4 and G5.Even so, we can still play a simple song.

<b>Materials:</b>
<ul>
<li> <a rel="nofollow" href="https://www.elecrow.com/raspberry-pi-pico-rp2040-microcontroller-board.html">Raspberry Pi Pico</a> x 1
</li><li> <a rel="nofollow" href="https://www.elecrow.com/mechanical-keyboard-switches-tester-collection.html">Mechanical keyboard </a>x 1
</li><li> trumpet x 1
</li><li> Breadboard x 1
</li><li> USB cable x 1
</li><li> Dupont cable x 12
</li></ul>

<b>Step 1: Disassemble the Mechanical Keyboard</b>
<div></div><img src="https://forum.elecrow.com/uploads/editor/qc/xf1axuc3aljx.png" alt="" />
We need to remove 12 keyboard keys from the acrylic base first.

<b>Step 2: Prepare Dupont Wires</b>
<img src="https://forum.elecrow.com/uploads/editor/3p/orump4jxzrx0.png" alt="" />
As shown in the figure above, we need to prepare 12 male to male Dupont wires and cut them in half to get 24 cut Dupont wires.Two Dupont wires are used for each keyboard key position.

<b>Step 3: Strip the Cable, Connect the Port</b>
<img src="https://forum.elecrow.com/uploads/editor/ip/nynl9cp7b26t.png" alt="" />
Use wire strippers to strip the insulating outer surface layer at the ends of two DuPont wires, and directly wind it around the two ports at the bottom of the keyboard key position.

If wire strippers are not available, use scissors to gently trim the outer layer of the insulator.

<b>Step 4: Welding</b>
<img src="https://forum.elecrow.com/uploads/editor/32/37xj65zak6uo.png" alt="" />
<img src="https://forum.elecrow.com/uploads/editor/o4/da0c6pypy3b4.png" alt="" />

Using a soldering iron and tin wire, weld the Dupont wire and the keyboard key ports together completely.

Follow steps Step3 to Step4 for the other 11 keyboard keys.

<b>Step 5: Reassemble Onto Acrylic Base</b>
<img src="https://forum.elecrow.com/uploads/editor/hu/vap3b6bdna2q.png" alt="" />

After we weld all the keyboard keys with Dupont wires, we need to reassemble them on the acrylic firmware that we took apart before.

<b>Step 6: Connect the Pico</b>
<img src="https://forum.elecrow.com/uploads/editor/0q/u6pi2he1emzk.png" alt="" />

Connect one of the Dupont lines of all keyboard keys to the negative column on the bread board, and connect the other Dupont line to the corresponding pin port of Raspberry PI pico in an orderly arrangement. (Connecting pins are 4-15)
In the same way, connect the horn to the breadboard.(Connecting pin is 2)

<b>Step 7: Download the Program</b>
<img src="https://forum.elecrow.com/uploads/editor/wt/j46s7i2e7cyd.png" alt="" />
Open the Thonny software, set the interpreter to MicroPython, then save the program to the Raspberry PI Pico master and rename it "main.py".

<b>Step 8: Program Running</b>
After uploading the program successfully, you can control the sound by pressing the keyboard keys!

Click <a rel="nofollow" href="https://www.youtube.com/watch?v=MAVb1EhJ3HU">here</a> to watch the video.
]]>
        </description>
    </item>
    <item>
        <title>How Using Pico To DIY A Running Alarm Clock</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/310/how-using-pico-to-diy-a-running-alarm-clock</link>
        <pubDate>Fri, 02 Sep 2022 07:26:49 +0000</pubDate>
        <category>Projects</category>
        <dc:creator>Eleanor</dc:creator>
        <guid isPermaLink="false">310@/index.php?p=/discussions</guid>
        <description><![CDATA[<h2><span style="color: blue;">Introduction:</span></h2>
When the set alarm time is reached, the alarm clock will blink red and whistle while scrolling forward until you wake up to chase and press the button to turn off his alarm sound! It is annoying, a bit crazy but fun and a gadget guaranteed to get you up on time.


<h2><span style="color: blue;">Material preparation: </span></h2>
<img src="https://forum.elecrow.com/uploads/editor/vj/2pfbiyqyg1mg.png" alt="" />
Pico*1
TM1637 4-Bits Digital Display*1
Red LED*1
Green LED*1
Button*1
Buzzer*1
N20 reduction motor * 2
L9110 motor drive module * 1
Small wooden board * 2
U-shaped motor fixing plate * 2
Wheel * 2
2 AA battery boxes * 1
Bread board * 1
Paper cylinder * 1


<h2><span style="color: blue;">Circuit connection:</span></h2>
<img src="https://forum.elecrow.com/uploads/editor/o8/gm89qy95ekb0.png" alt="" />

<h2><span style="color: blue;">Manufacturing steps: </span></h2>           
Step 1. Burn the program to Pico board.      
<code>
import tm1637
from machine import Pin,PWM
from utime import sleep
tm = tm1637.TM1637(clk=Pin(0), dio=Pin(1))
Sec = 40
Min = 29
Hour = 7
state_value = 0
MotorPinA_1A = 10
MotorPinA_1B = 11
MotorPinB_1A = 12
MotorPinB_1B = 13

button = Pin(2, Pin.IN, Pin.PULL_UP)
buzzer = PWM(Pin(3))
led_R = Pin(4, Pin.OUT)
led_G = Pin(5, Pin.OUT)

def setup():
    global motorA1
    global motorA2
    global motorB1
    global motorB2
    motorA1 = Pin(MotorPinA_1A,Pin.OUT)    
    motorA2 = Pin(MotorPinA_1B,Pin.OUT)
    motorB1 = Pin(MotorPinB_1A,Pin.OUT)    
    motorB2 = Pin(MotorPinB_1B,Pin.OUT)

def playtone(frequency):
    buzzer.duty_u16(10000)
    buzzer.freq(frequency)
def bequiet():
    buzzer.duty_u16(0)
    
def motor(A1,A2,B1,B2):
    motorA1.value(A1) 
    motorA2.value(A2) 
    motorB1.value(B1) 
    motorB2.value(B2)
    
if __name__ == '__main__':
    setup()
    while True:
        tm.numbers(Hour,Min,colon=True)
        Sec = Sec + 1
        if Sec == 60:
            Min = Min + 1
            Sec = 0           
            if Min == 60:
                Hour = Hour + 1
                Min = 0
                if Hour == 24:
                    Hour = 0
        if (Hour == 7 and Min == 30 and Sec == 0):
            state_value = 1
        if (Hour == 7 and Min == 32 and Sec == 0):
            state_value = 1
        if (Hour == 7 and Min == 34 and Sec == 0):
            state_value = 1
        if (Hour == 7 and Min == 36 and Sec == 0):
            state_value = 1
        if button.value() == 0:
            state_value = 0
        if state_value == 1:
            tm.numbers(Hour,Min,colon=True)
            led_R.value(1)
            led_G.value(0)
            motor(1,0,1,0)
            playtone(262)
            sleep(0.5)
            tm.numbers(Hour,Min,colon=False)
            led_R.value(0)
            playtone(393)
            sleep(0.5)

        else:
            led_R.value(0)
            led_G.value(1)
            motor(0,0,0,0)
            bequiet()
            tm.numbers(Hour,Min,colon=True)
            sleep(0.5)
            tm.numbers(Hour,Min,colon=False)
            sleep(0.5)
        </code>
Step 2. Cut the paper cylinder into holes for installing TM1637 4-Bits Digital Display, button and 2 LEDs.  
<img src="https://forum.elecrow.com/uploads/editor/9z/1b87omb1jfzo.png" alt="" />
          
Step 3. Install the N20 reduction motor on the wooden boards and connect it to the L9110 motor drive module.           
<img src="https://forum.elecrow.com/uploads/editor/ib/6wq486827fmg.png" alt="" />
 
Step 4. Connect the cables according to the wiring diagram.           
<img src="https://forum.elecrow.com/uploads/editor/bo/fbjlr2se47aq.png" alt="" />
 
Step 5. Put the bread board into the paper cylinder, paste the button, TM1637 4-Bits Digital Display and LEDs on the corresponding hole of the paper cylinder, paste the battery box on the outside of the cylinder, paste the wooden boards on both ends of the paper cylinder to install the wheel.
<img src="https://forum.elecrow.com/uploads/editor/55/5rvv6sf3odx5.png" alt="" />

Step6. Install battery to start. When the set alarm time is reached, the alarm clock will blink red and whistle while scrolling forward until you wake up to chase and press the button to turn off his alarm sound.


<h2><span style="color: blue;">Click  link below to  watch video.</span>
<a rel="nofollow" href="https://www.youtube.com/watch?v=YC9jhr9iqqs">https://www.youtube.com/watch?v=YC9jhr9iqqs</a>

</h2>]]>
        </description>
    </item>
    <item>
        <title>#Giveaway  Elecrow Raspberry Pi Pico Advanced Kit ?</title>
        <link>https://forum.elecrow.com/index.php?p=/discussion/303/giveaway-elecrow-raspberry-pi-pico-advanced-kit</link>
        <pubDate>Mon, 22 Aug 2022 09:36:13 +0000</pubDate>
        <category>Raspberry Pi &amp; CrowPi</category>
        <dc:creator>Tammy_Elecrow</dc:creator>
        <guid isPermaLink="false">303@/index.php?p=/discussions</guid>
        <description><![CDATA[I am joining the Elecrow Raspberry Pi Pico Advanced Kit #Giveaway Campaign, 3 sets available now, hurry up to win the Pico Kit from Elecrow.
Learn more here: <a rel="nofollow" href="https://gleam.io/TI11h/elecrow-raspberry-pi-pico-advanced-kit-backtoschool2022">https://gleam.io/TI11h/elecrow-raspberry-pi-pico-advanced-kit-backtoschool2022</a>

<a rel="nofollow" href="https://gleam.io/TI11h/elecrow-raspberry-pi-pico-advanced-kit-backtoschool2022"><img src="https://forum.elecrow.com/uploads/editor/dn/nn8v568wsxyl.png" alt="" /></a>
]]>
        </description>
    </item>
   </channel>
</rss>
