Creating a WiFi App for Pi Pico W

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2023
  • I Explain how to create a socket for WiFi communication in KOTLIN with android studio to Build your own app, setp the Internet permission and a micropyhton Sever running on a @raspberrypi pico W in thonny to reacte to the socket commands.
    -----------------------------
    Amazon us Pi Pico W starter set
    amzn.to/3QNuXbJ*
    *affiliate link
    -------------------------------------------------------------
    Tools i use:
    Wires: amzn.to/3Etm4Nl *
    bread board kit: amzn.to/3PvUTrk *
    LED set : amzn.to/3P94pzo *
    transisotrs: amzn.to/44LrEVZ *
    Pi Pico W: amzn.to/467nAR3 *
    *affiliate link
    ---------------------------------------------------------------
    --------------------------------------------------------
    SW Links:
    developer.android.com/studio
    thonny.org/
    github.com/LutzEmbeddedTec/Pi...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 19

  • @MIKECRAROTOPLAS
    @MIKECRAROTOPLAS หลายเดือนก่อน +1

    Hello LUTZ, could you make a video of this same video explaining how to send data from the Pico W to the Android app, please? If it's not too much trouble, could you implement an animation in Android Studio that shows the data from some sensor but in an animated way like a graph? Only if you can, if not, I would appreciate it if you could show how to send data from the Raspberry Pi Pico W to the Android application, please.

  • @macieq233
    @macieq233 6 หลายเดือนก่อน

    thank you bro, i did it :D i changed your Kotlin code to Java with Chat GPT and made little modifications but works great!

    • @lutz4tech
      @lutz4tech  6 หลายเดือนก่อน

      Hey cool, its way faster than the Webinterface, an Vetter to adapt :-)
      What Kind of modification did you do ?

    • @macieq233
      @macieq233 6 หลายเดือนก่อน

      @@lutz4tech as I remember, something with targetSdk versions and Java retranslating stuff, but that was because I used my own buttons and edittext. That doesn’t mean that you have something bad in your code :) i want to create something more advanced with Wi-Fi module now :)

    • @lutz4tech
      @lutz4tech  6 หลายเดือนก่อน

      ​@@macieq233 sounds cool, i'm not a java expert. But if you like to share your code. You can post a link.
      Whats the next things you plan? I really like this stuff sadly the response to this video is not that good. Im thinking of doing it again for a pi3, may there is a bigger audiance for this.

    • @macieq233
      @macieq233 6 หลายเดือนก่อน

      @@lutz4tech not sure where is my comment where i pasted link to my code here

  • @smbfanman
    @smbfanman 2 หลายเดือนก่อน

    When I try to run the micropython in Thonny, I keep getting an error message that says that it cannot import from mywifi. Is there something I'm missing?

  • @user-sf3zd9oy4w
    @user-sf3zd9oy4w 2 หลายเดือนก่อน

    This is quite interesting, very well done.
    What code needs to be added to have the pico return data back to the app?

  • @tompaquette7138
    @tompaquette7138 9 หลายเดือนก่อน

    This is great! If I understand correctly this seems like a nice way to relieve the minimal ram on the Pico W of a lot of code and hosting a web app. To use the app with the Pico W do you have to be on the same wireless network unless you port forward, or will it work from any wireless network as long as they are both connected to a network?

    • @lutz4tech
      @lutz4tech  9 หลายเดือนก่อน +1

      Hi, thanks for your Feedback. Yes this ist one Thing. There are Millionen more Things you can do with a App instead of the web Interface. Specialy when you want Others to use your project. For your question of the Connection : The decives need to See each other. If you have a Routing inside other WiFi IT works. But it does Not Work over the Internet, because the pi doesn't have a Public IP. But Port Forward works very well, i tried it today.
      Original i planed to make a series to extand this App with a Lot of Features. One is a global working communication. But sadly the Response to the Video is really poor. So ist seems Like there is less interesst to this topic. So i don't know If a will put the efford in for more Videos to this topic.

    • @tompaquette7138
      @tompaquette7138 9 หลายเดือนก่อน

      @@lutz4tech I'm not sure why you don't seem to be getting more of an audience. I would crown you a pioneer of the Pico W DIY development and I think you content is perfect! Currently I see a lot of guys using Pico W's the same way as you could with a Pico or focusing on Bluetooth, which is cool, but minimally applicable to most projects the Pico W can be applied to. Where as, you are making tutorials on how to utilize hosting a web application, make a phone application, how to interact with the additional features that you can't with a regular Pico, and giving examples of fun projects to start exploring the mass potential of the Pico W. I really like how you are trying to put the incredibly useful skills of DIY electronic development into ordinary people's hands. We no longer have radio technicians, or electronic stores widely available with people fixing, inventing, and improving their personal electronics, even though there are more electronics then ever before and so much potential money to save, and understanding to be had. Keep up the good work, you may not see the results now, but you could be shaping the next elon musk as we speak who is only 10 years old!

  • @rykonvolta6554
    @rykonvolta6554 8 หลายเดือนก่อน

    Is it possible to use QT to interface through your option of desktop, mobile or web app?

    • @lutz4tech
      @lutz4tech  8 หลายเดือนก่อน

      Sorry i have no experience with QT.

  • @tompaquette7138
    @tompaquette7138 9 หลายเดือนก่อน

    Do you know if there is a way to display status indicators on the android app from the Pico W? If gpio pin is 1 status = x if 0 status = y.

    • @lutz4tech
      @lutz4tech  9 หลายเดือนก่อน +1

      Hi Tom,
      definitly yes, there is a nice way with a switch, this is part of the second video, i´m preparing the code for it right now. hopefully there will be more interest as more features are coming in.
      here is the original planned roadmap:
      Video 2 - response and state satus in the app
      Video 2 (a) - find the pico in WiFi without enter the IP
      Video 2 (b) - handling different loads
      Video 3 - read button on the pico while socket is active (multi threading)
      Video 3 (a) - sending notifications of pressed button (don´t know if this works like i expact)
      Video 4 - Connect to your pico from all over the world (not sure if i use a server or a other solution)
      Video 5 - Events a time
      Video 6 - Multi pico handling (different sides in the app)
      since preperation of Video 2 is nearly finished i will make this one an decide afterwords if i do the others. Do you have any other topic to add for this app, your feedback is alway welcome :)

    • @tompaquette7138
      @tompaquette7138 9 หลายเดือนก่อน

      @@lutz4tech Video 4 might be tricky for it working across the board for everyone, causing you lots of headache if you do receive the audience you desire. For example, my isp doesn't provide a simple port forwarding option and I had to find an alternative host to forward my port, which I'm not sure if I could figure out how to do again. Unfortunately, the convenience of most smart devices apps having this ability, really would set the difference between a professional app and our own DIY app. You could make a proof of concept video of all of these features working, with a brief description on what you achieved with each change to your app and code, not going into detail and request to see what your audience is interested in. It may draw interest overall and offer patience from your audience once they have seen the potential final results.

  • @andrejapolenik8606
    @andrejapolenik8606 2 หลายเดือนก่อน

    Im receiving this error: The emulator process for AVD Pixel_3a_API_34_extension_level_7_x86_64 has terminated......please can someone help me?

  • @AnimalStomper
    @AnimalStomper 8 หลายเดือนก่อน

    I want to make a simple control app for a robot but I want it to be controlled by keyboard presses is this possible?

    • @lutz4tech
      @lutz4tech  8 หลายเดือนก่อน

      Sure, possible is everything. But it sound like you want to use it from a computer not a smartphone? To run it on a desktop machine i would prefer Python. Way easier at my point of view.