Recent Posts

Pages: [1] 2 3 ... 10
Editor / Re: error with the library "IR...
Last post by pert - Today at 03:44 am
While you certainly do need to spell and capitalize the file name correctly (as you have failed to do here), there seems to be something wrong with Arduino Web Editor.

I can confirm that the following sketch:
Code: [Select]
#include <IRremote.h>
void setup() {}
void loop() {}

gives the error:
Code: [Select]
/tmp/937910289/sketch_sep15a/sketch_sep15a.ino:1:22: fatal error: IRremote.h: No such file or directory

compilation terminated.

exit status 1

IRremote is one of the Arduino Library Manager libraries and is shown in the Library Manager search on the Arduino Web Editor.

and it's not only the Library Manager libraries. Even the "Built in" libraries included with the standard IDE are missing:
Code: [Select]
// Ethernet - Version: Latest
#include <Ethernet.h>
void setup() {}
void loop() {}/code]
[code]/tmp/278311039/sketch_sep15a/sketch_sep15a.ino:2:22: fatal error: Ethernet.h: No such file or directory

compilation terminated.

exit status 1

The only libraries you can include are the ones bundled with the hardware core (SPI, EEPROM, Wire, SoftwareSerial, etc.)

@ballscrewbob, can you reproduce this issue?
I get the correct Hz in the monitor print, but as noted, I am unable to adjust the setting from the potentiometer.  The value given on the monitor corresponds to the "lo" setting on the "map" - always.  I have tried different potentiometers.  The result is always the same. Only one frequency is provided no matter the potentiometer setting.  

I have been using this code for over a year without a problem.  I may have fried the analog circuits in the Arduino by accident.  That is all I can guess.  

Thank you for your enquiry and assistance.  Your further comments are very welcome.
Ok thanks for the information.  I should probably decode my own encoder.  After reading over the documents that the author of that library took their time to write, I felt confident that their skills and experience to design that function surpassed my own skills with interrupt handling and the processing of fast code counters.

Making my own closed-loop Arduino motor driver is a fairly involved project that needs me to master the encoder and P.I.D. (or whatever) motor pulse output loop.  Which is why I was searching for an open source, budget / beginner device / module to get me started and study, so that I can learn from that example and / or modify it so I can advance the actual project I'm trying to work on. 

For the time being, I found this "KANGAROO" module, that connects right up to my Sabertooth driver, handles the quad-decoding, positing, and motor speed regulation that I was looking for, for the steering and traction control drive output to begin with.
There are several issues filed in the github issues tracker like this.

The most useful one appears to be

Suggests calling WiFi.mode(WIFI_STA) AFTER WiFi.Begin()

Let me know if it works..
I rebooted and the code actually worked.

Thank you Robin2

Start with something simple, like this:
Code: [Select]
const byte potpin = A2;
const int hi = 1;
const int lo = 50;

void setup() {

void loop() {
  int input = analogRead(potpin);

  int mapped = map(input, 0, 1023, hi, lo);
  Serial.print(";  mapped==");


That will tell you if the potentiometer on A2 is wired correctly and map() is doing what you expect.
Hi ! Am working on stepper motor using Arduino UNO with V2 Motor shield. Am using 2 Stepper motor for doing raster scanning i.e Stepper1 motor just moves one step and stops till the stepper 2 reaches end of the scanning board i.e 15500steps and stops for sec till Stepper 1 moves one step and stops till Stepper 2 comes back to the same start position. I have the code below but problem is speed is too slow and i couldn't find any functions to increase the speed And also i have trouble putting in loop ..
void loop()

  char letter = 'a';
    switch (letter) {
      case 'a':
      stepper1.moveTo(10);// This is the main part like i explained above but its reducing the speed
      delay(100);                //
    if (stepper1.distanceToGo() == 0 && stepper2.distanceToGo() == 0) {
 And am also struggling to put the loops ...
Please do help me with this
Microcontrollers / Re: Bootloading the arduino M0
Last post by westfw - Today at 03:28 am
Keep an eye out for Atmel (Microchip) training.  Frequently a "hands on training class" will be giving away slightly old hardware at really steep discounts.   For example, in NY "somewhat associated with Makerfaire" (this week?), these is:
which includes a class on "Advanced Arduino Debugging", where you'll get to take home an ATmega328p Xplained-mini (Uno equivalent with mEDBG on-board) AND a JTAGICE3 debugger (does ARM too), all for $25.
Thank you for the help on program flow. I will divy up the code into subroutines before I return with more questions
Editor / Re: Web editor started giving ...
Last post by ballscrewbob - Today at 03:24 am
Could you share a link directly to your sketch so that others may try it .

Also are you using the same computer and browser you were originally ?

Pages: [1] 2 3 ... 10