Recent Posts

Pages: [1] 2 3 ... 10
1
Not going off site to help YOU - YOU read : How to use the FORUM!

Then I MAY help you.
2
What does this mean?

It could be saying button presses over 250ms are ignored.


Please use full sentences.


Begin in with "long press" mode off. If there is a button press that is less than 250 ms, do not enter "long press" mode. instead continue counting automatically at a duration set by "currentMillis - previousMillis > 60000/bpm". 

If the button is pressed for a period of 250ms or more, enter "long press" mode.  In long press mode, the counter only advances when the button is pressed for a short duration of less than 250 ms.  If, while you are in "long press" mode, and the button is held for 250ms or more, you exit long press mode and return to the automatic counter.

 
What are you trying to do with this interface. It seems backwards to the normal method of incrementing by one with a short press and release, and incrementing automatically with a longer hold.
I am creating a step sequencer that freezes the automatic counter upon long button press. When the sequencer has been frozen at its current step, it can be increased by pressing on the button for a short duration. It goes back to its normal auto increase when the button is again held for a long period of time.
3
No they do not get hot.
I am currently using a base module to power those nrf24l01.
I am powering a 5v 500mA-1000mA to power the base modules.
But still they are not working.
I have 6-7 nrf modules but non seems to be working.
4
Dear all,

I've tried to figure out how to fix this issue of compiling a working code for board Arduino Due.

It is giving me a hard time and I don't know how to solve this issue based on my current knowledge in Arduino.

Please help me on this. Here is the error message. Because the message exceeds the maximum allowed length (9000 characters), so I've upload the message as a text file here.


Here is my working code for UNO, but it cannot be compiled for board Arduino Due. Would you please help me on this?

The official LiDAR Lite library can been found here.


Thank you for your help.



Code: [Select]

#include <Wire.h>
#include <I2C.h>
#include <LIDARLite.h>
#define    LIDARLite_ADDRESS     0x62          // Default I2C Address of LIDAR-Lite.
#define    RegisterMeasure       0x00          // Register to write to initiate ranging.
#define    MeasureValue          0x04          // Value to initiate ranging.
#define    RegisterHighLowB      0x8f          // Register to get both High and Low bytes in 1 call.
#define    TCAADDR               0x70
LIDARLite myLidarLite;


void tcaselect(uint8_t i) {
  if (i > 7) return;
  Wire.beginTransmission(TCAADDR);
  Wire.write(1 << i);
  Wire.endTransmission();
  myLidarLite.begin(1, true); // Set configuration to default and I2C to 400 kHz choice 1 or 4
  myLidarLite.configure(4); 
}



void setup(){
  Serial.begin(115200);       
  I2c.begin(); // Opens & joins the irc bus as master
  tcaselect(0);
  tcaselect(1);
  tcaselect(2);
  tcaselect(3);     
//  tcaselect(4);     
//  tcaselect(5);     
//  tcaselect(6);     
//  tcaselect(7);     
  myLidarLite.configure(4); // Change this number to try out alternate configurations

}

void loop(){
  tcaselect(0);
  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0
  Serial.print(",");
  tcaselect(1);
  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0
  Serial.print(",");
  tcaselect(2);
  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0 
  Serial.print(",");
  tcaselect(3);
  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0 
  Serial.println(",");
//  tcaselect(4);
//  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0 
//  Serial.print(",");
//  tcaselect(5);
//  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0 
//  Serial.print(",");
//  tcaselect(6);
//  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0 
//  Serial.print(","); 
//  tcaselect(7);
//  Serial.print(myLidarLite.distance()); // Read Distance from Sensor at Channel 0 
//  Serial.println(""); 
}







5
Deutsch / Re: Frage zu einem Arduino Bef...
Last post by michael_x - Today at 06:54 pm
@Joe_Muc: Nein, das ist eine gute Frage.

Man könnte

const unsigned int DEBOUNCETIME=5;

schreiben, um die Warnung zum Vergleich signed / unsigned loszuwerden.
6
Software / Re: Quale scegliere fra le Liq...
Last post by erosb - Today at 06:54 pm
Ho uno Sketch scritto come dici tu, è quello che ho riportato nella mia ultima, e include anche il comando
 lcd.init();

Non sono sicuro se la libreria che ho usato è quella  che mi proponi  : LiquidCryistal_I2C-master

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

 Anche perchè il programma non riporta il vero nome della libreria completo.

Come si fa a capire se è una o l'altra, sempre delle Liquid...
 
Comunque ora riprovo a caricare la libreria e controllo i dati.

Scusa Igor, ma  sono un primino.

Non mi hai risposto se devo dizipare le librerie per vedere la loro versione.

A risentirci
7
Generale / Tensione sbagliata pin 10 Ardu...
Last post by Hicut1938 - Today at 06:53 pm
Salve a tutti, ho un problema con i pin di ardunio. Il problema è che dal pin 10 di arduino non escono 5v, ma 0,22 e non ho idea del perchè. Qualcuno riesce a risolvere il problema?
8
Code: [Select]
if (incomingByte == 'a')
      {Serial.println ("Otomatis");
       void otomatis();}


That's not how you call a function.  Have you noticed that when you called the Serial.print function you didn't write

Code: [Select]
int Serial.print("somethign");

and when you call the digitalWrite function you don't write:

Code: [Select]
void digitalWrite(2, HIGH);

Lose the void there and several other places.
9
Si mi sarebbe sicuramente utile!
Grazie mille
10
Deutsch / Re: Frage zu einem Arduino Bef...
Last post by Tommy56 - Today at 06:49 pm
Nichts sinnvolles, da millis immer unsigned long zurück gibt.

Gruß Tommy
Pages: [1] 2 3 ... 10