Schlagwort: Node-Red

  • The best maker software by experience level

    The best maker software by experience level

    Reading Time: 6 minutes

    Today’s makers have access to the most advanced materials, resources, and support in history, and it’s improving all the time. The downside is that finding the right software can sometimes feel confusing and overwhelming. There are seemingly endless options, all with different attributes and advantages.

    In this article, we’re here to help make things easier. We’ll walk you through the best software for makers at each experience level — beginner, intermediate, and expert — and help you identify the right software for your needs.

    The best maker software for each experience level

    Beginner-level software

    If you’re new to the world of making, you’ll likely have some specific needs and requirements that won’t apply to more experienced folks.

    For example, you’ll want software that’s forgiving and beginner-friendly, that comes with more opportunities to learn the basics, and is easy enough that you won’t be discouraged from making.

    With that in mind, here are our top picks for the best beginner-level maker software.

    Arduino IDE

    Arduino is one of the most well-established and well-known platforms for makers of all levels. Arduino’s microcontrollers allow you to program projects with your own custom code, creating gadgets that work exactly the way you want them to.

    If you’re new to the game, you’ll want to start with a microcontroller that’s suitable for beginners. The Arduino IDE is perfect for this: it’s free, user-friendly, and leverages a simplified version of the C/C++ programming languages so you can learn the basics in a fun and rewarding way.

    TinkerCAD

    Since it first came onto the scene in 2011, TinkerCAD has been a great choice for beginners looking to get started with making their own projects.

    As a CAD (computer-aided design) software, TinkerCAD is a fantastic tool for designers and can be used to create models for 3D printing. 

    Due to its beginner-friendly nature, TinkerCAD is often used in schools to help learners get to grips with basic coding and design, building their own elementary tech projects. It’s also completely free of charge.

    The advantage of using TinkerCAD is that it also contains a simple circuit designer and visual code tool useful to generate the code for Arduino boards.

    Intermediate-level software 

    Once you’ve learned the basics of making, you’ll likely be craving some more challenging and stimulating projects.

    Taking your coding skills to the next level requires more sophisticated software, allowing you to be more adventurous and ambitious with your plans. The good news is that there is plenty of software out there for intermediate makers. Let’s take a look at some examples.

    Python

    Python is one of the most well-known programming languages out there, and it’s compatible with most maker-friendly platforms and microcontrollers.

    Python works well with Arduino hardware, and is especially well-suited for projects that use sensors and other components. You don’t need to be a coding wizard to start using Python in this way, but you will need some familiarity and experience.

    Check out this project — a Nicla Vision-based fire detector built by Arduino user Shakhizat Nurgaliyev using Python. Shakhizat created an entirely generated dataset and then trained a model on that data to detect fires.

    MicroPython

    MicroPython is an experimental, lean, and lightweight implementation of the programming language Python, and it’s designed specifically to be used with microcontrollers.

    This makes it ideal for use with Arduino projects, and it works especially well with those that use sensors and similar components. MicroPython does require a base of coding knowledge to use, but you don’t need to be an expert.

    Visual Studio Code

    Visual Studio Code, often abbreviated as VS Code, is an open-source editor created by Microsoft that is compatible with Windows, Linux, and macOS. 

    It offers a range of features such as debugging support, syntax highlighting, smart code completion, snippets, code refactoring, and integrated Git functionality. Visual Studio Code can be used to develop code for Arduino boards, and, by using the available extensions, you can upload code directly to the Arduino boards.

    Node-RED

    Node-RED is built to bring hardware devices, software, and online services together, creating ever more interesting and advanced projects.

    It works especially well with IoT projects — and is a great choice if you want to integrate platforms like Arduino with other devices to build your own custom designs for use in your home.

    Node-RED’s browser-based editor and built-in library make it a powerful tool for those with some coding experience to make new projects.

    Arduino’s Portenta X8 can host a Node-RED instance running it on a container, making it easy to connect and integrate several different services, either locally or online with Arduino Cloud or third-party software. 

    In this project, David Beamonte used Node-RED and Arduino Cloud, to integrate a TP-Link smart Wi-Fi plug with other projects. This way, they were able to link multiple smart home devices together and control them from one central hub.

    Expert-level software

    Are you a true veteran of making and coding? Fluent in more programming languages than you can remember, with a host of impressive projects under your belt and a slot at next year’s Maker Faire?

    If so, you have the skills to achieve some truly exciting things. Let’s take a look at the software available for expert-level makers.

    MATLAB

    MATLAB is an advanced piece of software that works well with Arduino hardware and similar products. 

    It’s especially useful when building projects that require data analysis and complex, large-scale computations. Proficiency in MATLAB can lead to some truly impressive creations, but it takes a solid amount of experience and skill to realize those results.

    Arduino users MadhuGovindarajan and ssalunkhe used MATLAB to build their very own lane-following rover. The project used the rover from Arduino’s Engineering Kit, combined with an algorithm that allows the rover to stay within a designated lane while driving.

    The Arduino Engineering kit contains three different projects that involve physical hardware and MATLAB/Simulink to create amazing results. 

    C/C++ IDEs

    The programming languages C and C++ have been around for decades, underpinning the worlds of computer science and software engineering.

    If you have a solid base of coding ability, you can use C/C++ development environments to program Arduino boards and create ever more advanced and impressive projects.

    Other resources

    GitHub

    Do you want to share your code with your mates, or with the world? 

    If so, GitHub is the perfect place to do it. It’s an open-source community with multiple contributors and lots of integrations with developer-oriented software. 

    Inside, you’ll find more than 300 million projects, known as repos. Makers use the platform to share their work, but it can also be useful to take a look and draw inspiration from the trending repositories.

    AI/ML

    AI is making headlines all over the world, but it extends far beyond ChatGPT.

    Makers today have access to a wealth of fantastic tools to speed up work, correct errors, and document your shiny new code. Check out GitHub copilot and OpenAI Codex to get started.

    Using software with Arduino

    By combining the right software tools with Arduino’s products, you have the perfect recipe for your next awesome project.

    If you want to gain inspiration, or share your own work with our community, check out the Arduino Project Hub where you can search for projects and filter by type and difficulty level.

    The post The best maker software by experience level appeared first on Arduino Blog.

    Website: LINK

  • Controlling home appliances with Arduino Cloud and TP-Link smart plugs

    Controlling home appliances with Arduino Cloud and TP-Link smart plugs

    Reading Time: 4 minutes

    In today’s modern world, smart technology is revolutionizing the way we interact with our surroundings. From managing our home’s energy consumption to controlling appliances remotely — such as washing machines, fans, coffee makers, and even air conditioners. Smart devices offer us a level of convenience and control that was once unimaginable. However, dealing with multiple apps for various systems can be cumbersome and inefficient. This is where an integrated platform like the Arduino Cloud comes into play, offering a unified dashboard to control all your smart devices. Moreover, if you’re an Arduino enthusiast, you’ll be excited to learn how Node-RED can bridge the gap between commercial products and the Arduino Cloud. Last, but not least, you can integrate this project with the rest of your Arduino Cloud projects automating your appliance control using other devices’ data.

    In this blog post, we’ll delve into a fascinating project that demonstrates how you can harness the power of the Arduino Cloud and Node-RED to control TP-Link smart plugs, giving you the ability to manage and monitor your appliances from a centralized hub.

    TP-Link smart plugs and Kasa

    TP-Link smart Wi-Fi plugs are intelligent devices that transform everyday appliances into smart ones, enabling remote control via your Wi-Fi network. These plugs are part of TP-Link’s smart home ecosystem, designed to offer enhanced convenience and control over your home appliances. To manage and control these smart devices, TP-Link has developed the Kasa Smart platform. Through the Kasa Smart app, you can easily schedule, automate, and control your connected devices, making your home even smarter. Importantly, Kasa Smart provides an API that facilitates seamless integration with other platforms.

    Arduino Cloud: Simplifying IoT development

    The Arduino Cloud is a versatile platform that simplifies the creation, deployment, and management of IoT devices. It supports a range of hardware, including Arduino boards, ESP32/ESP8266-based boards and devices programmed with Python, JavaScript or Node-RED. This platform is a boon for makers, IoT enthusiasts, and professionals, as it enables them to build connected projects without needing extensive coding skills. Arduino Cloud lets you manage and monitor connected devices through customizable dashboards, offering real-time visualizations of device data. These dashboards can be accessed remotely using your favourite browser or via the Arduino IoT Cloud Remote mobile app, available for both Android and iOS devices, ensuring that you’re in control no matter where you are.

    Node-RED: Bridging the gap

    Node-RED is an open-source visual programming tool designed to facilitate the connection and automation of devices, services, and APIs. Its browser-based flow editor enables users to effortlessly create workflows by dragging and dropping nodes onto a canvas and connecting them. Each node represents a specific functionality or service, such as data input/output, data transformation, or communication with external systems. Popular in the Internet of Things (IoT) realm, Node-RED simplifies the integration of sensors, devices, and cloud services, empowering users to craft sophisticated IoT applications and automation systems without traditional coding. In this blog post we will see how Node-RED can act as a middleware between TP-Link smart plugs and the Arduino Cloud.

    Project setup: Getting started

    To embark on this exciting journey of controlling TP-Link smart plugs with the Arduino Cloud and Node-RED, you’ll need a few prerequisites:

    • A TP-Link smart Wi-Fi plug (such as HS100)
    • The Kasa app installed on your mobile phone
    • An Arduino Cloud account
    • An instance of Node-RED (running locally or in the cloud)

    No Arduino, ESP32, or ESP8266 devices are required for this project.

    Step-by-step implementation

    Here’s a concise overview of the steps you’ll undertake to bring your project to life:

    • Configure your TP-Link smart plug: Begin by adding your TP-Link smart plug to the Kasa app on your mobile device. This process connects your plug to both your Wi-Fi network and the internet, enabling remote control.
    • Create the device in the Arduino Cloud: In the Devices section of Arduino IoT Cloud, create a new device. This process involves selecting “Any Device” and following the instructions in the wizard. Don’t forget to save your Device ID and Secret Key.
    • Create the Node-RED flow: Access your Node-RED instance and import the provided code. This code configures the integration between the TP-Link smart plug, Arduino Cloud, and Node-RED.
    • Configure the Kasa and Arduino Cloud nodes: Within Node-RED, you’ll need to input the IP address of your TP-Link smart switch and configure the connection to Arduino Cloud using the API key you generated.
    • Create the Arduino Cloud dashboard: Navigate to the Dashboards section of the Arduino Cloud and create your dashboard. Customize it to your liking for easy monitoring and control.
    • Test the System: With everything set up, it’s time to test your creation. Access your Arduino Cloud dashboard to observe the status of your smart plug and control it using the provided button.

    Try it now!

    Experience the future of home control now. Discover how the Arduino Cloud and Node-RED combine to command TP-Link smart plugs. Create your Arduino Cloud account and dive in at the Project Hub project page and transform your home today!

    The post Controlling home appliances with Arduino Cloud and TP-Link smart plugs appeared first on Arduino Blog.

    Website: LINK

  • Save money with a Tuya/SmartLife energy meter monitored on Arduino Cloud via Node-RED

    Save money with a Tuya/SmartLife energy meter monitored on Arduino Cloud via Node-RED

    Reading Time: 4 minutes

    In a world where energy bills are climbing and the environment is on our minds, keeping tabs on how we use energy at home has become a smart move. Every gadget we plug in impacts our wallets and the planet. That’s where home energy monitoring comes in – giving us real-time info on how we’re using energy, so we can save money and do our bit for the Earth.

    This post delves into home energy monitoring, spotlighting how to track your energy consumption using the Arduino Cloud and a Tuya-compatible energy meter with Node-RED acting as a middleware.

    What’s the deal with home energy monitoring?

    Home energy monitoring is all about watching how much energy we’re using at home. It’s not just about paying the bills; it’s about knowing what’s eating up energy, so we can be smarter about it.

    Why does it matter? Well, first off, it helps us be more aware. When we can see which devices are energy hogs (looking at you, always-on TV), we can take action. And with energy costs going up, finding ways to save money is a no-brainer. Plus, with everyone talking about being green these days, knowing where your energy goes is like a badge of honor for doing your part.

    The ingredients

    The key component in this setup is an energy meter designed to monitor both real-time and cumulative power consumption, along with metrics such as voltage and current. This meter is installed within your home’s electrical distribution board. Tuya-compatible devices have gained widespread popularity due to their affordability, user-friendliness, and seamless management through the SmartLife application. Moreover, these devices can also be seamlessly integrated into alternative platforms through the utilization of the Tuya API.

    The Arduino Cloud stands out as a versatile and user-friendly IoT platform, supporting a wide range of hardware. It’s not only customizable and adaptable to suit different purposes and use cases, but it also streamlines the incorporation of multiple devices, facilitating smooth information exchange among them. It is a perfect tool to monitor your energy consumption, being informed when outstanding events happen and perform actions on other devices based on the energy information acquired.

    While direct connection of Tuya-compatible devices to the Arduino Cloud isn’t possible, the process becomes really straightforward with the intervention of Node-RED. This intermediary acts as a bridge between the energy meter and the Arduino Cloud, ensuring seamless communication between the two. With Node-RED you can integrate almost anything with the Arduino Cloud.

    The project

    The following project shows how to integrate all those elements to easily build your own energy monitoring system. 

    Before getting started, you’ll require:

    • A Tuya/Smartlife-compatible energy meter
    • The SmartLife or Tuya app installed on your iOS/Android device
    • The Energy Meter added to the Tuya Smart app
    • An Arduino Cloud account (https://cloud.arduino.cc)
    • An instance of Node-RED running locally or on a cloud machine (installation guide found here)

    The process is really straightforward:

    • Install the energy meter within your electric board.
    • Obtain your Tuya device API key.
    • Create the Device and Thing within the Arduino Cloud.
    • Develop the Node-RED flow to manage data traffic.
    • Fashion the Arduino Cloud Dashboard.

    Build your own energy meter from the ground up

    Monitoring energy consumption with Arduino Cloud doesn’t solely rely on Tuya-compatible energy meters. If you’re inclined to build your own solution from the ground up, consider exploring the Arduino IoT-based energy meter hosted on the Project Hub. There is additional detailed documentation available and a ready-to-use template to deploy your solution with one click.  

    By engaging with this project, you’ll not only gain insight into your energy consumption monitoring but also experience the simplicity of crafting practical projects that interface Arduino boards with external components such as the Modbus energy meter. All this will be seamlessly managed and monitored by the Arduino Cloud.

    Ready to Get Started? Take Control of Your Energy!

    The path to smarter energy consumption begins with your curiosity and action. Now armed with the knowledge of the Arduino Cloud’s potential, it’s time to embark on your own energy monitoring journey. Don’t wait – seize the opportunity to optimize your energy usage, save on bills, and contribute to a more sustainable planet. With the Arduino Cloud as your ally, you can monitor, manage, and make a positive impact starting from your own home. Create your account, dive in, tinker for free, and start your energy-saving adventure today. Your future of empowered energy management is just a click away!

    The post Save money with a Tuya/SmartLife energy meter monitored on Arduino Cloud via Node-RED appeared first on Arduino Blog.

    Website: LINK

  • 14 awesome Arduino Cloud features you never knew existed

    14 awesome Arduino Cloud features you never knew existed

    Reading Time: 7 minutes
    Arduino Cloud Free

    There are dozens, if not hundreds of amazing Arduino Cloud features. So it’s perfectly understandable if you’ve missed some of them.

    So we’ve put together a list of our favorite Arduino Cloud features that you might not know existed.

    1) Auto-Generate Sketches

    We’ve talked elsewhere about getting an understanding of what cloud computing really is, and how it’s not just the domain of experts. The cloud is how total beginners can get started much more easily. There’s no better demonstration of that than our first top Arduino Cloud feature; auto-generated sketches.

    When you create a new “Thing” in your Arduino Cloud, you add various bits of info to it. Wi-Fi connection credentials, and any variables you want to control or monitor. The Cloud automatically generates a starting sketch from this info. That sketch can then be sent to your boards, so all your initial configuration is taken care of, without a single line of code.


    2) Device-to-Device Communication

    There’s simply no easier way to make two microcontroller boards talk to each other than Arduino Cloud. We’ve covered in detail how easy it is to wirelessly connect your boards.

    This isn’t just for Arduino devices either. If you want any combination of Arduino, ESP32 and ESP8266 devices to work together, this is how you do it.


    3) Over-the-Air Updates

    Working through your Arduino Cloud means you don’t have to disconnect any Arduino boards when updating them. If you want to edit or add a new sketch, it can all be done wirelessly, over-the-air.

    Anyone who’s had to dismantle a project or device to get to a board’s USB socket will appreciate the simple, vital value of this feature. It’s one of those things that you’ll wonder how you ever lived without.

    Arduino cloud features over-the-air updates

    4) Support for ESP Boards

    There’s a reason we call it the Arduino IoT Cloud. This is an all-encompassing platform for Internet of things, home automation, and electronics project control and management. So first we added support for ESP8266 devices. More recently, experimental support for ESP32 boards became available.

    So even if your project doesn’t actually have any Arduino products in there, the Cloud is just as useful. Secure, private, and accessible to all kinds of IoT and maker devices.

    Arduino Cloud also supports ESP8266 and ESP32

    5) Trigger Actions on Cloud Events

    Arduino Cloud makes it super easy to do things that you might normally need the IDE for. But it’s also got lots of exclusive features that you only get in the Cloud.

    For example, there are actions that can be triggered based on your board’s interactions with your Arduino Cloud. You can include actions within your sketches when a Cloud connection is successful, and when the Cloud has synced with a device. Or perhaps most useful of all, trigger an action if Cloud connectivity is lost. Getting an indication that a project has disconnected could be incredibly useful!

    Here’s an example of using these actions within a sketch.


    6) Sharing Your Dashboards

    Dashboards are control panels within your Arduino Cloud. It’s one of the most powerful Arduino Cloud features, and essential to making full use of Cloud control. But what’s often overlooked is that you can share dashboards with anyone you want.

    For example, let’s say you’re using Arduino Cloud to control your home automation. You can set up a dashboard for a tablet in the living room that the whole family can use, but doesn’t have sensitive admin controls in there. And then another for people to use on their phones. 

    All Cloud plans include unlimited dashboards. And anyone can have a free Cloud account. So you can create as many dashboards as you like, and share them with literally anyone, anywhere.

    Share dashboards with anyone you want from Arduino Cloud

    7) Alexa Integration

    Natural language voice control is genuine Star Trek stuff. So it’s no wonder people love the functionality of Alexa. Did you know it’s incredibly easy to connect your Arduino Cloud to Alexa? And once you have, it effectively adds voice control to every board, and every project. Nothing else needed.

    There’s literally no easier way to make an Alexa-controlled device or project than with your Arduino Cloud. You’ll never look back, and you’ll always have someone to talk to.

    [youtube https://www.youtube.com/watch?v=Yt0OrmzBmMk?feature=oembed&w=500&h=375]


    8) Full API Integration

    For the engineers, coders, developers and those among you who’ve been using Arduino for a long time, API integration is the powerhouse secret feature you’ve been looking for.

    The API can be called with any HTTP client, or with languages like Javascript, Python, Golang and more. It’s what you need to incorporate the power of Arduino Cloud features into your systems, platforms and projects.


    9) Use IFTT, Zapier and More with Webhooks

    There are lots of reasons you might want to include control platforms outside of your Arduino Cloud. Like sending an email or a Tweet when you press a button on a Nano, or a device disconnects from the Cloud (see above).

    That’s what webhooks are for, and they give you a universal way to send commands out of Arduino Cloud, and into… well, anything!

    IFTTT and Zapier are great examples of services that can do almost anything from a webhook. Get to know this feature, and connected projects suddenly have easy access to the whole web.


    10) Easy Firmware Updates

    When you connect a new Arduino board, your Arduino Cloud automatically checks its firmware version. If there’s an update available, it offers you the option of applying that update.

    Very easy, and you don’t have to worry about finding the correct/latest firmware version yourself. This simple, background function makes sure your boards and projects always have the latest features, security updates and bug fixes.

    For people who use a lot of Arduino devices, it’s worth adding them to the Cloud for this feature alone.


    11) Full Dashboard Customization

    We’ve already talked about unlimited dashboards in your Arduino Cloud. Creating them is easy, but did you know you can customize them too?

    Anyone who’s dipped their toe in the home automation waters knows how essential dashboard editing is. Some platforms work great, but offer very little when it comes to controlling your dashboard layout. For many people, that’s a deal breaker.

    Your Arduino Cloud widgets can easily be added, edited, removed, repositioned and resized in any configuration you want. It’s as simple as drawing and resizing boxes, but the result makes your Cloud projects infinitely more useable.


    12) Watchdog Timer

    The Arduino Cloud automatically runs a watchdog timer that will reset your board, hardware or project if it crashes. This is a small feature, but a powerful one that can keep your projects running while unattended. 

    It means you never have to manually reset it when you eventually realize it’s not been running all day. You can have devices running remotely (very remotely, with SIM or LoRa connectivity) and be sure they’re robust enough to keep on ticking.

    It’s included and running automatically, but can easily be disabled if you don’t need it.

    [youtube https://www.youtube.com/watch?v=t2F1rFmyQmY?feature=oembed&w=500&h=375]


    13) Node-RED Integration

    Arduino provides a super easy way to use Node-RED for IoT automations. This is a powerful, but very easy-to-use visual programming platform specifically designed for IoT projects.

    Complex automations using advanced triggers like sunrise or sunset, presence detection, combined actions or sensor readings and so much more. The possibilities are endless, and learning Node-Red is incredibly easy. Get to grips with this feature, and you’ll be creating IoT automations that would otherwise need an experienced coder.


    13A) Fully Functional Free Account

    One of the best kept secrets of the Arduino Cloud is that if you’re registered on the Arduino website or forum, you already have a free Cloud waiting for you. Simply head on over to the Cloud site and get started with unlimited dashboards and unlimited sketches. The free tier of Arduino Cloud is fully functional, and it’s ready and waiting for you to give it a try.

    In fact, it’s the perfect option especially if you haven’t used Arduino before! Give it a shot and let us know what you think. No credit card required; just your creativity and a passion for connected projects.

    Website: LINK