Recent Posts

Pages: [1] 2 3 ... 10
1
"Cable I am using to connect weighing scale connector and RS232 to TTL converter is null cable and I have checked continuity of every pin of cable and working fine."

Are pins:
2 going to 2
3 going to 3
5 going to 5
?



Yes, and today I will connect connectors directly and lets see what will be the results.
2
Project Guidance / Re: RS232 to TTL converter for...
Last post by larryd - Today at 04:28 am
BTW: Why are there Kg and KG in the following:

Eagle eye.


3
Continued from PART 5 - Adding an LCD & buttons ))

Now we have enough hardware working to run software - here's what I'm going to do...
(Hint: Although you haven't seen it yet - it works pretty well!)

ATTACHED PDF

TO BE CONTINUED
4
Project Guidance / Re: RS232 to TTL converter for...
Last post by larryd - Today at 04:26 am
"Cable I am using to connect weighing scale connector and RS232 to TTL converter is null cable and I have checked continuity of every pin of cable and working fine."

Are pins:
2 going to 2
3 going to 3
5 going to 5
?


5
Oh eh, the standard example  (2nd sketch) actually doesn't send anything to the Serial port (it is commented out )  Also due to an inaccuracy in the sketch un-commenting stuff does not quite work as you'd hope (it doesn't show the Ip address correctly since it is not actually in full connection status when it is read) though the AP (ESPap) shows up in your network list and you can connect to it and go to the standard IP 192.168.4.1 and you'll be asked for your credential.

this sketch works fully (if you set the proper ssid & password for your network) and prints out plenty in the Serial monitor for you.
Code: [Select]
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <ESP8266WebServer.h>

const char* ssid = "ESPap";
const char* password = "";
const char* network = "yourSSID";
const char* networkpassword = "yourPASS";

ESP8266WebServer server(80);

const char* www_username = "admin";
const char* www_password = "esp8266";

void setup() {
  Serial.begin(115200);
  Serial.println();
  Serial.println("----------HttpBasicAuth------------");
  WiFi.softAP(ssid, password);
  Serial.println("Access Point started.");
  Serial.print("ssid : ");
  Serial.println(ssid);
  Serial.print("password ");
  Serial.println(password);

  WiFi.begin(network, networkpassword);
  if(WiFi.waitForConnectResult() != WL_CONNECTED) {
    Serial.println("WiFi Connect Failed! Rebooting...");
    delay(1000);
    ESP.restart();
  }
  Serial.print("Connected to Network : ");
  Serial.println(network);
  Serial.println("Reconnecting AP");
  WiFi.reconnect();
  uint8_t elapsed=0;
  while (WiFi.status()!=WL_CONNECTED) {
    Serial.print(".");
    delay (500);
    elapsed++;
    if (elapsed>30) {
      Serial.println("Unable to reconnect, Rebooting");
      delay(1000);
      ESP.restart();
    }
  }
  Serial.println();
 
  Serial.println("Starting Authentication server");
  ArduinoOTA.begin();

 
  Serial.print("Open http://");
  Serial.print(WiFi.localIP());
  Serial.println("/ in your browser to see it working");

  server.on("/", [](){
    if(!server.authenticate(www_username, www_password))
      return server.requestAuthentication();
    server.send(200, "text/plain", "Login OK");
  });
  server.begin(); 
}

void loop() {
  ArduinoOTA.handle();
  server.handleClient();
}

thx i will try it
6
I wasn't sure if it would but the ULN2803 switches the relay fine when connected directly to power.

I just switched the relay out for an LED and it's the same.

I get 7.71V on pin 18 with the ULN2803 when pin 1 is connected to the MCP23S17 output on HIGH

I get 0.70V on pin 18 with the ULN2803 when pin 1 is connected directly to 5V power and the relay clicks/LED lights up
7
Yes with RS232 to USB + arduino serial monitor/Putty/HyperTerminal at 9600 Baud rate output is perfect!
Like this (changing weights):
Code: [Select]
+000.385 Kg
+000.385 Kg
+000.100 Kg
+000.000 Kg
+000.020 KG


I just tried circuit of post #37 and sketch of post #51, serial monitor shows:
Code: [Select]
ZLy=4ZLy=
 and so on....

Please tell me, do I have to include this one in code?
Code: [Select]
//-----------------
    intPart[0] = myWeight[1];
    intPart[1] = myWeight[2];
    intPart[2] = myWeight[3];
    //----------------------
    fracPart[0] = myWeight[5];
    fracPart[1] = myWeight[6];
    fracPart[2] = myWeight[7];
    //----------------------
    unsigned long intWt = atol(intPart);
    unsigned long fracWt = atol(fracPart);
    float fintWt = (float)intWt;
    float ffracWt = (float)fracWt / 1000000.0;
    float wt = fintWt + ffracWt;

    /*
      Serial.print(intWt);  //0
      Serial.print("   ");
      Serial.println(fracWt);  //390000

      Serial.print(fintWt);  //0
      Serial.print("   ");
      Serial.println(ffracWt);  //390000
    */
    Serial.println(wt, 3);   //0.390  Kg


Thanks, will wait for your reply.
1. Please, post the screenshot of the Arduino Serial Monitor of this setup: Weighing Scale + RS232-USB + Arduino Monitor. (Press Print Scrn Button, paste in the MSWORD and enlarge, Press Print Scrn button, paste in the paint, select the image and save and then make a post.)

2.  You don't need to include those codes with the sketch of Post#51.

Coming soon with the next advice.

BTW: Why are there Kg and KG in the following (no hand edit; you should post the original.):
Code: [Select]
+000.385 Kg
+000.385 Kg
+000.100 Kg
+000.000 Kg
+000.020 KG
8
I'm not exactly trying to repurpose an Arduino to be an adapter
OK, but that's exactly what the configuration in your previous thread does. It's making your fancy Zero into something inferior to a $1 USB to TTL serial adapter.

its just the trouble of uploading it.
Please do this:
  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload
  • After the upload fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the forum toolbar).
9
Hello

Completely new to motor work or any kind. I have started a project when my winch died on my ATV. I have stripped it all down. I had a broken brush , which I made a new one, there was some rust on the armature and the stator, cleaned it up with a light brass brush and contact cleaner. I have tested the comutator with a multi meter and it seems like it's all okay. Putting the motor back together and hooking it up to the solenoid, it will rotate the shaft for half a second or so, a couple revolutions and then stop , it will then do the same in the opposite direction but wont stay running. Any ideas?
Winch motors are like starter motors in that the brushes carry a large current. Did you make the new brush just like the existing brush? Both should have embedded copper braid to carry the current. A simple brush holder won't work.

Paul
10
Español / Arduino y Alexa amazon
Last post by AEXHERZ - Today at 04:21 am
Hola Comunidad en Español,

Alguno de ustedes ha desarrollado algun proyecto con alexa de amazon?
Pages: [1] 2 3 ... 10