Recent Posts

Pages: [1] 2 3 ... 10
1
Français / Re: schéma électrique : demand...
Last post by azurha - Today at 12:01 am
Au passage, il aurait été sympa de mettre en pièce jointe le schéma et les paramètres de ton montage ou le lien vers l'ancienne discussion au lieu de nous obliger à chercher dans l'historique de tes posts.
merci de ton retour, mais désolé je ne comprends pas ce que tu dis. De quel ancienne discussion veux-tu parler ?



Et merci pour toutes tes informations très détaillées 68tjs, tu penses bien que je stock tout ça dans mes favoris XD.
2
I believe he is referring to this post
Here's a link to a 200 VAC power supply I built using two ATtiny85s from a Nerdkits.com project.

http://forum.arduino.cc/index.php?topic=206429.0

FYI, switching the inductor without a capacitor to store the charge is a waste of time and an excersize in futility.
His post fooled me as well  :smiley-confuse:
3
Project Guidance / Help with capacitive sensing
Last post by lauren18 - Today at 12:00 am
What started out as a fun final project of the semester has become not so fun. Basically I need to change what was a button on a circuit board to be a capacitive sensor. I've transported the button from the circuit board to my breadboard, but now I just need to get it to be a capacitive sensor and that's where I keep getting stuck. Any suggestions??
4
Frustrating or not you need decoupling capacitors. That is the end to it.
You can find all sorts of crap circuits on the Internet it dosn't mean it is right.

You have daisy chained wiring to the pots. It needs to be star. With star wiring all the wires meet at one point only so there is a wire from each pot to one point not one to an other to another and so on like you have.
5
General Electronics / Re: Current Amplifiers
Last post by rlogiacco - Nov 20, 2014, 11:57 pm
@polymorph I would bet he will be pretty happy if he can get within 100mV to rails, which most of RRIO opamps can easily get without getting too expensive. Unless he needs a particular precision he might compensate for that lost in range in software by just using the map function.

While I do get your point and I like the solution, I just think he doesn't really need that, just a generic single supply RRIO opamp :smiley-small:
6
Hello! Everyone. I am a fresher for Arduino. I am working on a project of Bluetooth communication between one Bluetooth module and another Bluetooth module of different brand. I am wondering if Arduino has a library for discovering a Bluetooth module and establishing the link for them. There are some codes for android to do these tasks, therefore, I guess there might be some for Arduino as well. However, I failed to find them in the library. Could someone kindly help me out?
Thank you in advance^^
7
Programming Questions / Re: Too many external interrup...
Last post by optimistx - Nov 20, 2014, 11:56 pm
...
Previously you posted:

      From earlier tests with timers involved I have seen that the extra interrupts
      precede the "normal ones" about 16-24 microseconds , and their probablity
      might depend on the length of the interrupt routine.


What does this mean?

In a not_simplified program version there is a call to micros() during interrupt service routine. If the value is less than the previous micros() + 28 microseconds, the interrupt is not stored to the rotating buffer. This acts as a debouncing program with a suitable time constant.
(With this type of debouncing the same setup connected to a reed switch had worked tens of kilometers without obvious errors. I wanted to use hall sensors to get more accurate measurements to find out acceleration e.g. having tens of magnets in the wheel )
When a constant of 28 microseconds was used, no spurious interrupts were visible for the program, which reads the rotating buffer.
8
Software / Re: Arduino powering VFD
Last post by uwefed - Nov 20, 2014, 11:55 pm
Non ho capito cosa ha che fare la domanda con un display VFD.
Ciao Uwe
9
Programming Questions / Re: Payload Value in xbee-ardu...
Last post by jumpering - Nov 20, 2014, 11:55 pm
I disabled the digital input / analog of xbee to only use the xbee-arduino library to compose packages. I will read the voltage PIR with atmega, and I will create a package to send to the library.
Thanks for helping!
10
Programming Questions / Re: Relays unresponsive until ...
Last post by dlloyd - Nov 20, 2014, 11:54 pm
For some reason, I'd really like to see this solved.

I suspect slider0_val and slider1_val stay at 0 until you manualy move the sliders. When at 0, the relay(s) will be OFF regardless of temperature, so I initiallized them to the same values you have for sliderPreset1 and sliderPreset2 respectively.

If this doesn't work, you should test the values of your variables by using the serial monitor. This will help you to diagnose the problem, otherwise it's just guessing.

Oh well, try this (adapted from your original code), line changes marked with ◄◄◄:

Code: [Select]
#define CHANNEL1 8 //fan
#define CHANNEL2 9 //Valve
#include <genieArduino.h>
#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 3
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
DeviceAddress basementTemp = { 0x28, 0xB6, 0x58, 0x66, 0x04, 0x00, 0x00, 0x07}; //BLUE wire Dallas
DeviceAddress furnaceWater = { 0x28, 0xCB, 0x4F, 0x66, 0x04, 0x00, 0x00, 0xF8}; //GREEN wire Dallas Temperature Sensor address
DeviceAddress houseWater = { 0x28, 0xDE, 0x57, 0x66, 0x04, 0x00, 0x00, 0x0A}; //GREEN wire Dallas

//int tempLeeway = 5; //Temperature buffer for relay so it won't flip on and off all the time
float sliderPreset1 = 80;//Preset slider values so you don't have to set values manually upon start-up and relays stay off until temp sensor reaches this number
float sliderPreset2 = 81;//Ditto

int slider0_val = 80;//Set point ◄◄◄
int slider1_val = 81;//Set point ◄◄◄
int t = 0, temp = 0;//for celcius to fehrenheit conversion ◄◄◄

void setup()
{

pinMode(CHANNEL1, OUTPUT); //Low Speed Fan RELAY
pinMode(CHANNEL2, OUTPUT); //High Speed Fan RELAY
digitalWrite(CHANNEL1, HIGH); ◄◄◄
digitalWrite(CHANNEL2, HIGH); ◄◄◄

genieBegin (GENIE_SERIAL, 56000); //Serial1
genieAttachEventHandler(myGenieEventHandler);
//genieSetup(9600); //Make sure this is the same baud rate of the LCD and the genieBegin command.

sensors.begin();
sensors.setResolution(basementTemp, 10);
sensors.setResolution(furnaceWater, 10);
sensors.setResolution(houseWater, 10);

//Reset the Display (change D4 to D2 if you have original 4D Arduino Adaptor)
pinMode(4, OUTPUT); // Set D4 on Arduino to Output (4D Arduino Adaptor V2 - Display Reset)
digitalWrite(4, 1); // Reset the Display via D4
delay(100);
digitalWrite(4, 0); // unReset the Display via D4

delay (3500); //let the display start up

genieWriteObject(GENIE_OBJ_LED_DIGITS, 6, sliderPreset1);//TEST
genieWriteObject(GENIE_OBJ_SLIDER, 0, sliderPreset1);//TEST
genieWriteObject(GENIE_OBJ_LED_DIGITS, 5, sliderPreset2);
genieWriteObject(GENIE_OBJ_SLIDER, 1, sliderPreset2);//TEST
}


void loop()
{
//digitalWrite(CHANNEL1, LOW); //Test to see if this will keep relay off until temps reach preset point... FAIL....
static long waitPeriod = millis();
genieDoEvents();

//Read from sensor every 100ms and write to the display
if (millis() >= waitPeriod)
{
temp = (t * 1.8) + 32; //Convert *C to *F.

float basement = sensors.getTempF(basementTemp);
float furnace = sensors.getTempF(furnaceWater);
float waterHeater = sensors.getTempF(houseWater);
//float tempC = sensors.getTempC(insideThermometer);
float tempF;
sensors.requestTemperatures();


//genieWriteObject(GENIE_OBJ_LED_DIGITS, 1, basement);//The first line of code in the section gets ignored for some reason...?? copy and paste
genieWriteObject(GENIE_OBJ_LED_DIGITS, 1, basement);/
genieWriteObject(GENIE_OBJ_LED_DIGITS, 0, waterHeater);
genieWriteObject(GENIE_OBJ_LED_DIGITS, 2, basement);
genieWriteObject(GENIE_OBJ_LED_DIGITS, 3, furnace);
genieWriteObject(GENIE_OBJ_LED_DIGITS, 7, waterHeater);
waitPeriod = millis() + 25; // rerun this code in another 100ms time. ◄◄◄ changed from 10 to 25


if ((slider0_val <= 0) || (slider0_val > basement)) ◄◄◄
{
  digitalWrite(CHANNEL1, HIGH); //relay OFF
}
else
{
  digitalWrite(CHANNEL1, LOW); //relay ON
}

/////////////////////////////////////////////////////

if ((slider1_val <= 0) || (slider1_val > waterHeater)) ◄◄◄
{
  digitalWrite(CHANNEL2, HIGH); // relay OFF
}
else
{
  digitalWrite(CHANNEL2, LOW); // relay ON
}
}//Closes Millis
}//Closes Loop


void myGenieEventHandler(void)
{
genieFrame Event;
genieDequeueEvent(&Event);

//If the cmd received is from a Reported Event
if (Event.reportObject.cmd == GENIE_REPORT_EVENT)
{
if (Event.reportObject.object == GENIE_OBJ_SLIDER) // If the Reported Message was from a Slider
{
if (Event.reportObject.index == 0) // If Slider0
{
slider0_val = genieGetEventData(&Event); // Receive the event data from the Slider0
}
}
}

//If the cmd received is from a Reported Event
if (Event.reportObject.cmd == GENIE_REPORT_EVENT)
{
if (Event.reportObject.object == GENIE_OBJ_SLIDER) // If the Reported Message was from a Slider
{
if (Event.reportObject.index == 1) // If Slider1
{
slider1_val = genieGetEventData(&Event); // Receive the event data from the Slider1
}
}
}

//If the cmd received is from a Reported Object, which occurs if a Read Object is requested in the main code, reply processed here.
if (Event.reportObject.cmd == GENIE_REPORT_OBJ)
{
//Put code in here, like the above, if you want to process data when you have used a genieReadObject in your main loop
//Currently there are none, so this section has no code.
//Filter out the Object and the Index like above, and then same the data into a variable as required.
}
}
Pages: [1] 2 3 ... 10