I am new here so not sure where to Post

strong textI apologise for maybe not doing all the ‘right things’. Just learning how to navigate this forum.
I have a Arduino UNO and I want to control it with node red. I started of with Home Assistant and included Node-Red, However, couldnt get what I wanted. It was Windows 10 with VirtualBox.

So I installed Node-Red directly via node-js. I have got it installed and sort off get it? I have looked at so many how to-s for beginners but cant get what I want to make the leap/ from controlling a simple turn a led on and off from the dashboard to the Arduino UNO? Any help appreciated.
Eventually I will find out how to POST this message

Summary

This text will be hidden

How do you plan to make the UNO Ethernet/WiFi connection?

Apologise for being such a dick! Found out how to post

I have an Ethernet shield but Im trying to get back to basics- and just using uno to try and communicate.

@trev1951, your topic has been moved to a more suitable location on the forum :wink:

Hopefully the end result will be a “Home Assistant” type deal to control relays etc from wherever (IPads,IPhones,PC’s) but I need to get over that first hurdle. Cheers..

Communicate? Via serial to a PC?
I'm not aware of a serial Node-Red proxy.

Thanks-hopefully I’ll find it

Good luck!

Welcome to the forum.

It would help you and us if you read the rules of the forum.

A subject line that states your needs will get results and responses from people who know your problem and needs.

And less from people who can't help or want to tell you the importance of an informed subject line.

I have sorted out the major problem that I was having and that was I couldnt talk to my arduino with anything other than its own IDE. And I wanted to use node-red, home assistant etc.

I will try and summarize the problems I had and my 'fix' if any one wants more info I will try and send. The more experienced will read my stuff and say -Yeh we all know that etc..... but but a lot of times it is the really obvious stuff that causes problems a ':' instead of ';' --looks similar etc.

OK - here we go. As a hobby and for the practicality of having an automated home system I wanted to learn and use stuff to control stuff :grinning: :grinning:

I have installed a working camera security system. After trying a few systems I settled on Blue Iris and am very happy- 5 cameras recording 24/7.

Home Security Assistant seems like what I want and its still there in the background. However, node-red seemed to do everything I wanted without all the overhead. I tried installing node-red a number of times (because it wouldnt connect to arduino) and I would search google look for help and I was lost :slightly_frowning_face: I Could not decipher the error messages and I couldnt believe it would be that hard.

I tried the simplest sketch and loaded and tried about a dozen sketches all with errors and no contact. I resigned myself there was no easy fix and I needed to go thru the errors one by one and fix them. This did not seem like an easy task because I didnt have a clue what they referred to.

Well (as probably everyone knows-except me) - a few changes to a file and life will be good again. The file is settings.js. I had problems finding it and editing it. I cannot emphasis strongly enough how useful Visual Studio Code is-(vscode). This file is 90% comments (helpful) and it is a case of working out your circumstances and changing accordingly. As I say vscode was invaluable to me. I had a split screen with node red running on one half and vscode in the other the vscode was split in three - terminal, settings.js and file/folders. Then I could start node-red in the terminal and see the errors and change. Then easy- to control -C to shut down and re-do sketch arduino IDE.

I will paste in a bit of stuff I did - maybe someone can explain better?


FROM SETTINGS.JS--------
// By default, credentials are encrypted in storage using a generated key. To
// specify your own secret, set the following property.
// If you want to disable encryption of credentials, set this property to false.
// Note: once you set this property, do not change it - doing so will prevent
// node-red from being able to decrypt your existing credentials and they will be
// lost.
credentialSecret: 'trevssecretkey', <<<<<<I did this

then this

// Customising the editor

editorTheme: {

    projects: {

        // To enable the Projects feature, set this value to true
        enabled: true,                                   <<<<<<<<<<<<<<<<<<<<<<<<from false
        workflow: {
            // Set the default projects workflow mode.
            //  - manual - you must manually commit changes
            //  - auto - changes are automatically committed
            // This can be overridden per-user from the 'Git config'
            // section of 'User Settings' within the editor
            mode: "manual"

hope that gives you the idea?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.