Hello, I have a question. I have to use 4 arduino uno and my pc has 3 usb port. So can I use usb multiport? Is it work for me? By the way I could not choose which category I should write to, I am sorry.
Yes, you can use a multi port USB hub and connect 4 Unos. It would be best if it were a powered hub
If you want to work on more than one sketch at the same time, each with its own Uno, as when testing communication between them, open a separate instance of the IDE for each Uno and each can have its own designated COM port
For this do you have any link on amazon or etc. ?
Should I open as sketches saved differently even though each code is the same? Is there any guide or example for your suggestion ? Sorry for my english.
Search for "powered USB hub"
If the code for each Uno is the same, then you can open the same sketch in each of the different instances of the IDE but be careful if you make any changes that you know which version is open in which instance and which one has been changed
Why exactly do you want/need to work on 4 Unos at the same time ?
Thank you so much
I am trying to use MAX 6675 thermocouple module with LabVIEW. I use VISA in LabVIEW to get temperature in the LabVIEW interface. VISA read the value from IDE code. I could not find to get to read seperate value from 2 MAX 6675 on one arduino uno. So I am trying to get from two Arduino.
I know nothing about the MAX6675 but from a quick search it appears to use an SPI interface. If so then you should be able to read several of them using one Uno
Please post your code that reads one of them
I tried to create SPI interface in LabVIEW but ı could not. It did not read the value.
#include <max6675.h>
int thermoCS = 11;
int thermoDO = 12;
int thermoCLK = 13;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
int vccPin = 3;
int gndPin = 2;
void setup() {
Serial.begin(9600);
pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
pinMode(gndPin, OUTPUT); digitalWrite(gndPin,LOW);
Serial.println("MAX6675 test");
delay(500);
}
void loop() {
Serial.println(thermocouple.readCelsius());
delay(250);
}
int thermoCS = 11;
This defines the Chip Select pin for the device
If you have more than one SPI device then connect MISO, MOSI and SCK from all of them to the same 3 pins but connect Chip Select from each one to a different Arduino pin. Then, when you create each instance of the objects to read temperatures use a different CS pin in the object definition
That way you can read from multiple devices
I will try and let you know. Thank you again.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.