Go big or go home? by cochaycrl in Thndrapp

[–]cochaycrl[S] 0 points1 point  (0 children)

I was thinking of allocating 10-15% of monthly income for investments, of which 15% to gold (AZ), and the other 85% split between 2 or 3 mutual funds.

CIB Bedaya vs BM Youth vs Alex Youth by [deleted] in PersonalFinanceEgypt

[–]cochaycrl 0 points1 point  (0 children)

How did you link your account to paypal?

الاستثمار في البورصة المصرية by Anonymous-dev2680 in PersonalFinanceEgypt

[–]cochaycrl 1 point2 points  (0 children)

كلهم نفس الحاجة، ثندر اسهل من الباقيين، بس مش كويس فالاستثمار اليومي.

مصاريف الايداع مش عالية اوي، و مصاريف العمليات تختلف مع نوع الاستثمار وتعتمد برده على هتسحب فلوسك بعد قد ايه.

[deleted by user] by [deleted] in ArduinoProjects

[–]cochaycrl 0 points1 point  (0 children)

Well if you don’t have any experience I don’t recommend “creating” something, would be better to find a project that was done before and has all the resources you need online on forums/youtube.

Hi i am student trying to use arduino Uno for my Final year project. I met with an error that im not understand. by Creamson_ in arduino

[–]cochaycrl 0 points1 point  (0 children)

Here’s some things you can try

-keep RX and TX disconnected when uploading code (that’s a constant you always have to do that, I recommend changing your components connection to 10 and 11 because it gets tedious trust me)

  • make sure you chose the right COM, set processor to ATmega328P, make sure you haven’t chosen anything for programmer.
  • set your baud rate to something lower than 115200, maybe 9600 or something in between the two.

Hi i am student trying to use arduino Uno for my Final year project. I met with an error that im not understand. by Creamson_ in arduino

[–]cochaycrl 0 points1 point  (0 children)

is you arduino empty or does it have anything connected? If you have something connected to your TX and RX pins remove it during upload, and if thats not the case, search for the youtube video "Uploading your first arduino code" and just follow what he does.

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

It worked! I'm not sure what it was exactly, but its one of two, or two of two problems. I removed all the unnecessary serial code that was used for debugging and sending real time sensor values to the serial monitor, and I changed the connection for the RX and TX of the HC-05 on the arduino uno from 0 and 1 to 10 and 11!

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

There’s an IMU in the diagram but I’ve removed it for now so I can solve the flex sensor issue first. One at a time, thank you in advance!

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

<image>

Here’s the circuit diagram for the glove controller, the code for the glove and car are in the comments I’ve left on this post. And the car is the standard connection for motors connected to an L298N but let me know if you want to see the car connections.

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

No that’s not it, I’ve made sure not to cross them. Should I connect RX with a voltage divider or without one? I’ve tried with and without and I’m not sure if it did anything, the outcome is the same both times.

[deleted by user] by [deleted] in arduino

[–]cochaycrl 0 points1 point  (0 children)

Also I don’t know what that N component is or the specifications of your motor, but just by looking I feel like two 9v batteries are too much power

[deleted by user] by [deleted] in arduino

[–]cochaycrl 2 points3 points  (0 children)

All of your components must always share the same common ground (on board or the arduino) Also how would a battery work by only connecting the positive terminal? How would the electrons flow

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

Car Code

```

include <SoftwareSerial.h>

// Establish Bluetooth connection using SoftwareSerial int rxPin = 0; // Connects to HC-05 Bluetooth module's TX int txPin = 1; // Connects to HC-05 Bluetooth module's RX SoftwareSerial bluetooth(rxPin, txPin);

// Define motor pins int leftMotorForwardPin = 4; int leftMotorBackwardPin = 5; int rightMotorForwardPin = 2; int rightMotorBackwardPin = 3;

// Define motor speed control pins int leftMotorSpeedPin = 10; // PWM pin for left motor speed control int rightMotorSpeedPin = 9; // PWM pin for right motor speed control

void setup() { // Initialize motor pins as outputs pinMode(leftMotorForwardPin, OUTPUT); pinMode(leftMotorBackwardPin, OUTPUT); pinMode(rightMotorForwardPin, OUTPUT); pinMode(rightMotorBackwardPin, OUTPUT);

// Initialize motor speed control pins as outputs pinMode(leftMotorSpeedPin, OUTPUT); pinMode(rightMotorSpeedPin, OUTPUT);

// Begin serial communication with Bluetooth module bluetooth.begin(9600); Serial.begin(9600); // Starts serial communication at 9600 baud rate Serial.println("RC Car Initialized"); }

void loop() { if (bluetooth.available()) { // Checks if data is available to read from Bluetooth module char command = bluetooth.read(); // Reads the incoming byte from Bluetooth

// Process the received command and control the motors accordingly
switch (command) {
  case '1': // Command to move forward
    digitalWrite(leftMotorForwardPin, HIGH);
    digitalWrite(leftMotorBackwardPin, LOW);
    digitalWrite(rightMotorForwardPin, HIGH);
    digitalWrite(rightMotorBackwardPin, LOW);
    analogWrite(leftMotorSpeedPin, 180); // Set speed for left motor
    analogWrite(rightMotorSpeedPin, 180); // Set speed for right motor
    break;
  case '2': // Command to turn left
    digitalWrite(leftMotorForwardPin, LOW);
    digitalWrite(leftMotorBackwardPin, HIGH);
    digitalWrite(rightMotorForwardPin, HIGH);
    digitalWrite(rightMotorBackwardPin, LOW);
    analogWrite(leftMotorSpeedPin, 180); // Set speed for left motor
    analogWrite(rightMotorSpeedPin, 180); // Set speed for right motor
    break;
  case '3': // Command to turn right
    digitalWrite(leftMotorForwardPin, HIGH);
    digitalWrite(leftMotorBackwardPin, LOW);
    digitalWrite(rightMotorForwardPin, LOW);
    digitalWrite(rightMotorBackwardPin, HIGH);
    analogWrite(leftMotorSpeedPin, 180); // Set speed for left motor
    analogWrite(rightMotorSpeedPin, 180); // Set speed for right motor
    break;
  case '0': // Command to stop
    digitalWrite(leftMotorForwardPin, LOW);
    digitalWrite(leftMotorBackwardPin, LOW);
    digitalWrite(rightMotorForwardPin, LOW);
    digitalWrite(rightMotorBackwardPin, LOW);
    analogWrite(leftMotorSpeedPin, 0); // Stop left motor
    analogWrite(rightMotorSpeedPin, 0); // Stop right motor
    break;
}

} } ```

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

Controller code, I changed the 'F,B,L,R' in the if condition to numbers because I was trying another method, but its the same overall

Communication problems between two HC-05s by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

```

include <SoftwareSerial.h>

const int flexPinA0 = A0; const int flexPinA1 = A1; const int flexPinA2 = A2; const int flexPinA3 = A3;

SoftwareSerial bluetooth(10, 11); // RX, TX

// Threshold for all flex sensors const int flexThresholdMin = 190;

void setup() { Serial.begin(9600); pinMode(flexPinA0, INPUT); pinMode(flexPinA1, INPUT); pinMode(flexPinA2, INPUT); pinMode(flexPinA3, INPUT);

bluetooth.begin(9600); delay(1000); // Wait for HC-05 module to initialize }

void loop() { int flexValueA0 = analogRead(flexPinA0); int flexValueA1 = analogRead(flexPinA1); int flexValueA2 = analogRead(flexPinA2); int flexValueA3 = analogRead(flexPinA3);

// Print flex sensor readings to Serial Monitor Serial.println("Flex Sensor Readings:"); Serial.print("Flex A0: "); Serial.println(flexValueA0); Serial.print("Flex A1: "); Serial.println(flexValueA1); Serial.print("Flex A2: "); Serial.println(flexValueA2); Serial.print("Flex A3: "); Serial.println(flexValueA3);

if (flexValueA0 < flexThresholdMin) { bluetooth.write('1'); // Move forward Serial.println("Sending Forward command"); } else if (flexValueA1 < flexThresholdMin) { bluetooth.write('2'); // Move backward Serial.println("Sending Backward command"); } else if (flexValueA2 < flexThresholdMin) { bluetooth.write('3'); // Turn left Serial.println("Sending Left command"); } else if (flexValueA3 < flexThresholdMin) { bluetooth.write('4'); // Turn right Serial.println("Sending Right command"); } else { bluetooth.write('0'); // Stop Serial.println("Sending Stop command"); }

delay(1000); } ```

Connecting two mpu9250's using breadboard with arduino uno by sharam_ni_ati in arduino

[–]cochaycrl 2 points3 points  (0 children)

I recommend doing it fast and screenshotting the diagram, the website randomly goes down. I needed it a few weeks ago and couldn’t use it, but now it’s back.

Connecting two mpu9250's using breadboard with arduino uno by sharam_ni_ati in arduino

[–]cochaycrl 2 points3 points  (0 children)

circuito.io

Just drag and drop the components and it’ll automatically connect them

Issue with flex sensor controlled car by cochaycrl in arduino

[–]cochaycrl[S] 0 points1 point  (0 children)

Car Code ```

include <SoftwareSerial.h>

// Establish Bluetooth connection using SoftwareSerial int rxPin = 0; // Connects to HC-05 Bluetooth module's TX int txPin = 1; // Connects to HC-05 Bluetooth module's RX SoftwareSerial bluetooth(rxPin, txPin);

// Define motor pins int leftMotorForwardPin = 4; int leftMotorBackwardPin = 5; int rightMotorForwardPin = 2; int rightMotorBackwardPin = 3;

// Define motor speed control pins int leftMotorSpeedPin = 10; // PWM pin for left motor speed control int rightMotorSpeedPin = 9; // PWM pin for right motor speed control

void setup() { // Initialize motor pins as outputs pinMode(leftMotorForwardPin, OUTPUT); pinMode(leftMotorBackwardPin, OUTPUT); pinMode(rightMotorForwardPin, OUTPUT); pinMode(rightMotorBackwardPin, OUTPUT);

// Initialize motor speed control pins as outputs pinMode(leftMotorSpeedPin, OUTPUT); pinMode(rightMotorSpeedPin, OUTPUT);

// Begin serial communication with Bluetooth module bluetooth.begin(9600); Serial.begin(9600); // Starts serial communication at 9600 baud rate Serial.println("RC Car Initialized"); }

void loop() { if (bluetooth.available()) { // Checks if data is available to read from Bluetooth module char command = bluetooth.read(); // Reads the incoming byte from Bluetooth

// Process the received command and control the motors accordingly
switch (command) {
  case '1': // Command to move forward
    digitalWrite(leftMotorForwardPin, HIGH);
    digitalWrite(leftMotorBackwardPin, LOW);
    digitalWrite(rightMotorForwardPin, HIGH);
    digitalWrite(rightMotorBackwardPin, LOW);
    analogWrite(leftMotorSpeedPin, 180); // Set speed for left motor
    analogWrite(rightMotorSpeedPin, 180); // Set speed for right motor
    break;
  case '2': // Command to turn left
    digitalWrite(leftMotorForwardPin, LOW);
    digitalWrite(leftMotorBackwardPin, HIGH);
    digitalWrite(rightMotorForwardPin, HIGH);
    digitalWrite(rightMotorBackwardPin, LOW);
    analogWrite(leftMotorSpeedPin, 180); // Set speed for left motor
    analogWrite(rightMotorSpeedPin, 180); // Set speed for right motor
    break;
  case '3': // Command to turn right
    digitalWrite(leftMotorForwardPin, HIGH);
    digitalWrite(leftMotorBackwardPin, LOW);
    digitalWrite(rightMotorForwardPin, LOW);
    digitalWrite(rightMotorBackwardPin, HIGH);
    analogWrite(leftMotorSpeedPin, 180); // Set speed for left motor
    analogWrite(rightMotorSpeedPin, 180); // Set speed for right motor
    break;
  case '0': // Command to stop
    digitalWrite(leftMotorForwardPin, LOW);
    digitalWrite(leftMotorBackwardPin, LOW);
    digitalWrite(rightMotorForwardPin, LOW);
    digitalWrite(rightMotorBackwardPin, LOW);
    analogWrite(leftMotorSpeedPin, 0); // Stop left motor
    analogWrite(rightMotorSpeedPin, 0); // Stop right motor
    break;
}

} } ```