Recent Posts

Pages: [1] 2 3 ... 10
Project Guidance / Re: ESP8266 boot mode problem?
Last post by Wawa - Today at 08:12 am
I'm using a TC1262-3.3VDBTR as my voltage regulator.  I've tried powering the project with a 9v...
Did you read the datasheet for that regulator?
Working voltage 2.7 to 6volt, and 6.5volt absolute max.
If you want your weight loss so you can control your diet and take a saleat  on the diet . so simply use a green coffeefor the best treatment your fat without any workout.If you deiced to buy green coffee so you can choose a grecobe green coffee because he provide a best scientific approve green coffee in India      

Thanks again PaulS, but nothing change..same problem!

Code: [Select]

// Arduino 07 -  Servo, Serial Monitor, and Joystick
//This program controls a servo motor continuously
//according to the input provided from a joystick
//and shows joystick input and output to servo on the screen
//of an attached computer, via the Arduino Serial Monitor.
// ---------------------------------------------------------------------------

#include <Servo.h>
#define SERVO_PIN 9
#define GROUND_JOY_PIN A3            //joystick ground pin will connect to Arduino analog pin A3
#define VOUT_JOY_PIN A2              //joystick +5 V pin will connect to Arduino analog pin A2
#define XJOY_PIN A1                  //X axis reading from joystick will go into analog pin A1
Servo myservo ;

void setup()
  pinMode(VOUT_JOY_PIN, OUTPUT) ;    //pin A3 shall be used as output
  pinMode(GROUND_JOY_PIN, OUTPUT) ;  //pin A2 shall be used as output
  digitalWrite(VOUT_JOY_PIN, HIGH) ; //set pin A3 to high (+5V)
  digitalWrite(GROUND_JOY_PIN,LOW) ; //set pin A3 to low (ground)

void loop()
  int joystickXVal = analogRead(XJOY_PIN) ;  //read joystick input on pin A1
  Serial.print(joystickXVal);                //print the value from A1
  Serial.println(" = input from joystick");  //print "=input from joystick" next to the value
  Serial.print((joystickXVal+520)/10);       //print a from A1 calculated, scaled value
  Serial.println(" = output to servo");      //print "=output to servo" next to the value
  Serial.println() ;
   int aVal = analogRead(A0);
   float rat = aVal/10230.0;


Working with Arduino Uno I ended up in need of a way to perform different actions at different time intervals. For that purpose I decided to go with an abstract 'Routine class'
class Routine
   unsigned int _delay;
   unsigned int _timePassed;

   virtual int Delay() = 0;
   virtual void DoWork() = 0;
from which all other routines will inherit. _delay will be assigned in constructor and tells how at what intervals do I need to perform this routine. TimePassed measures time since last action. Delay() is a simple accessor and DoWork() is an action that needs to be performed.

In my .Ino file in main loop I have this structure
for (unsigned int i = 0; i < RoutineCount; i++)
   if (Routines->Delay() == -1)
   else if (Routines->_timePassed + (millis() - LastMeasure) >= Routines->Delay())
      Routines->_timePassed = 0;
      Routines->_timePassed += (millis() - LastMeasure);
And Routines[] is defined like so:
USSRoutine Sound(200);
Routine* Routines[]
Is this a good approach? Is there room for improvement? Are there any caveats to it?
You have encoders for pan and tilt. Give them the appropriate names. You did it for the servos so why not for the encoders? Same applies to the functions that read the encoders.

Code: [Select]
  void doEncoder0A();
  void doEncoder0B();
  void doEncoder1A();
  void doEncoder1B();

These are function definitions / prototypes and don't belong in another function.
There are so many versions of the board now that it's been difficult to chose the right one.
Since you ask the question, the answer is still the same - Uno. The project doesn't sound big enough to merit a Mega and, if you preferred the likes of a Nano, you wouldn't be asking. As for RTC, the DS3231 is only a dollar more than the popular DS1307, and generally a far better bet, but the usual module is a lot more bulky.
Only you can  decide on the LCD, but it appears that a plain-vanilla 16x2 will suffice.
Best of luck
Nick from NSW
General Electronics / Re: Rheometer
Last post by TomGeorge - Today at 07:58 am
Defn Rheometer;

A rheometer is a laboratory device used to measure the way in which a liquid, suspension or slurry flows in response to applied forces. It is used for those fluids which cannot be defined by a single value of viscosity and therefore require more parameters to be set and measured than is the case for a viscometer. It measures the rheology of the fluid.
There are two distinctively different types of rheometers. Rheometers that control the applied shear stress or shear strain are called rotational or shear rheometers, whereas rheometers that apply extensional stress or extensional strain are extensional rheometers. Rotational or shear type rheometers are usually designed as either a native strain-controlled instrument (control and apply a user-defined shear strain which can then measure the resulting shear stress) or a native stress-controlled instrument (control and apply a user-defined shear stress and measure the resulting shear strain).
Just do we can see what you are trying to do.

What is your electronics, programming, Arduino, hardware experience?

Tom,.... :)
Français / Re: 3,3V avec 5 RC522 sur un U...
Last post by jaoustet - Today at 07:56 am
Hum en effet.

Mais alors que penser de ce genre de raisonnement ?

EDIT : je viens de penser à une chose ! Je lis les lecteurs chacun leur tour, donc à un instant T, il y en a 4 en "standby current" et 1 en "working current", donc ça nous amène à une consommation max estimée de 4*13 + 26 = 78mA. C'est toujours trop mais c'est déjà moins :)
Hi, I hope I'm in the right area.
I am running the IDE on a MacBook Pro, and am up to date.
I can load a sketch into the IDE, compile it without errors but when I try to load it into the Arduino (Uno) it fails. The fault seems to be that instead of using the Comms Port the IDE seems to be looking only at a Bluetooth Input.
I thought I could fix this by resetting the comms port but when I go to Tools Ports there is no "ports" option only Dev/cu.Bluetooth-Incoming Port.
In the Ports section "Ports" is greyed out and all I can see there is the dev/cu.... descriptor, which is ticked.
If I switch off Bluetooth it has no effect.
i've run out of ideas.
Has anyone else had this problem?
Microcontrollers / Re: ESP8622-ESP01 using FTDI +...
Last post by PaulRB - Today at 07:54 am
I am getting 100% but nothing shows up in the serial monitor.
What sketch did you upload? Does the sketch send anything to serial monitor?

Totally unhelpful picture, btw.

If you want to learn to build projects with esp, as a beginner, get an esp based dev board. I recommend Wemos mini.
Pages: [1] 2 3 ... 10