GPS and Dot Matrix

Hello there. I will print the date and time info which I get from the GPS module on two separate dot matrix screens, and the posts need to be fixed. Thanks.

Any circuit or module to detect fan speed identification to micro controller??

Dear connection

I have a circuit for monitoring fan regulator speed change using ADC (as shown).
here iam using current sensor module for speed change identification..
but the problem is

-current sensor output ranges between small voltage so measurement take so difficult
-even in case input supply voltage (230v ) varies its effect the output of current sensor ..
so it hard to detect the speed changes .

could you please suggest some circuits or module to detect the fan speed changes , it should be identified by the micro controller

Help with machine improvements.

Dear All

Recently I build a machine that is it is used to perform the Break-In process for radio control car engines. This machine has a stepper motor connected to a pulse generator, also has an RPM sensor and a temperature controller.

What I want to do is to improve my machine and be able to collect the data from the RPM sensor and temperature controller to be send via a wifi signal to my mobile phone and also have the capability to control the stepper motor.

Everything that I have put together is with simple hardware store supplies and what I was able to read and get from Ebay, but I think this task is much complex and I am struggling with understanding on how to do this. So if someone is able to help me I will really appreciate it.

Arduino to Arduino communication

I have a problem with my project, I want to do Arduino to Arduino communication.

Fuzzy logic using Arduino

I am working on developing a Fuzzy logic AI for an e health platform i am developing and i am working on how best to programme the AI into the uno ... is this possible and if so can i programme my AI function and the platforms ehealth operations onto the same Arduino.

PWM Signal with Labview and Arduino

I am trying to generate a PWM signal with variable frequency using Labview and an Arduino UNO.
When using the PWM write pin VI, I cannot adjust the frequency.
When using a Tone VI, I cannot adjust the duty cycle (set 50%).
When using the Digital Write pin with a signal generator in LabView, it appears that the Arduino cannot read the signal I am generating.
My question is: Is there a way to create a PWM signal with Arduino and Labview where I can control all of these features?
Note: I realize that I can edit the arduino LVIFA code to change the frequency, but that isn't ideal because I cannot change it with a control, right?
Thanks for the help and please have some grace due to the fact that I am new to this stuff.

Software serial

Every time I try to bring softwareserial into my code I get this error:

In function 'void setup()':
error: expected unqualified-id before '.' token

I've searched the forum and references and cann't figure out what I'm doing wrong. thanks


my code looks like this:
#include <SoftwareSerial.h>



int val = 0;
char code [10];
int byteread = 0;
int EnPin = 2;

void setup()
{
Serial.begin(2400);
pinMode(2,OUTPUT);
SoftwareSerial(7,8);
SoftwareSerial.begin(9600);

}

void loop()
{

digitalWrite(EnPin,LOW);
if (Serial.available()>0)
{
if((val = Serial.read()) == 10)
{
byteread=0;
while (byteread < 10)
{
if (Serial.available()>0)
{
val = Serial.read();
if ((val == 10) || (val == 13))
{
break;
}
code[byteread]=val;
byteread++;
}
}
if (byteread==10)
{
Serial.print("Tag code is ");
Serial.println(code);
}
digitalWrite(EnPin,HIGH);
delay(500);
}
}
}

Serial.flush();

hi there

I'm working with a bluegiga wt32 bluetooth adapter at the moment. I never worked with a serial interface so naturally, I do have some questions. generally, it works quite well, but there seem to be some problems with the serial buffer (or so I guess).

Initially I sent the serial commands just like this:
Code: [Select]
Serial.println("INQUIRY 1");


The problem with this was that somehow, when I read out the serial buffer, this command was sent/read out repeatedly.

I then modified the code like this:
Code: [Select]
Serial.println("INQUIRY 1");
delay(500);
Serial.flush();


This works better, but not in every case. And even more, I don't know why it works. If I for example remove the delay, I have the same problems again. Also, I was once told that delay should not be used...

Also, I don't know why it works with Serial.flush(). Doesn't this command delete the serial buffer? Shouldn't I then not be able to read what I have printed before?

Any help with this is appreciated...

By the way, I read out the serial buffer like this:[code] while(Serial.available() > 0){ message_part = Serial.read(); message[message_part_count] = message_part; message_part_count++; if (message_part == char(10)){ // only send out message if it's complete (with line feed) Serial.print(message); delay(500); Serial.flush(); reset_message(); } // end if } // end while [/code]

Sending AT commands through serial monitor

I'm using the Arduino Uno board with Quectel M10 GPRS shield. I want to send AT commands through the serial monitor. I load the following code and send AT commands through the serial monitor. I dont see the AT command sent or response received on the serial monitor output window. Any help is appreciated..

/Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2,3);

void setup()
{
mySerial.begin(19200); // the GPRS baud rate
Serial.begin(19200); // the GPRS baud rate
}

void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());

}

Serial Read from Arduino

I'm trying to et the Processing sketch to read Serial input from an Arduino PhotoCell sensor. The Arduino is sending readings from 1-100. The Processing Sketch is working. It is getting something from the serial read but the numbers coming in are very different (7,53,13, 57, 48, 13, 10, 57, 53, 13, 10, 49, 48, 48, 13, 10, 49, 48, 48, 13)…..

Can anyone help me understand how to get the Processing sketch to read the numbers that are coming from the Arduino exactly. I plan to eventually make the processing sketch load then fade and remove images when they are within a particular range from the sensor .
[code]int photoRPin = 0; int minLight; int maxLight; int lightLevel; int adjustedLightLevel; void setup() { Serial.begin(9600); //Setup the starting light level limits lightLevel=analogRead(photoRPin); minLight=lightLevel-20; maxLight=lightLevel; } void loop(){ //auto-adjust the minimum and maximum limits in real time lightLevel=analogRead(photoRPin); if(minLight>lightLevel){ minLight=lightLevel; } if(maxLight<lightLevel){ maxLight=lightLevel; } //Adjust the light level to produce a result between 0 and 100. adjustedLightLevel = map(lightLevel, minLight, maxLight, 0, 100); Serial.println(adjustedLightLevel); delay(450); }[/code] Processing Code (……so far)
[code]import processing.serial.*; Serial myPort; // Create object from Serial class PImage bear; int rand; int xPos; int yPos; int state; void setup() { size(displayWidth, displayHeight); myPort = new Serial(this, "/dev/tty.usbmodemfa131", 9600); rand = int(random(0,9)); takerandomimage("bear_" + nf(rand, 3) + ".jpg"); } void takerandomimage(String fn) { bear = loadImage(fn); } void draw() { /*if (mousePressed) { xPos = int(random(100,800)); yPos = int(random(100,600)); image(bear,xPos,yPos); mousePressed = false; }*/ while (myPort.available() > 0) { state = myPort.read(); println(state); } if (state >=0 && state <= 70){ xPos = int(random(100,800)); yPos = int(random(100,600)); image(bear,xPos,yPos); } else if (state >=71 && state <= 100) { image(bear,0,0); } }[/code] (and I did try turning off the Arduino Serial. Still the weird non-correspondance....)
Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir