Show Posts
Pages: 1 ... 246 247 [248] 249 250 ... 839
3706  Using Arduino / Project Guidance / Re: Tact switch mimicking a keypress on: November 03, 2013, 07:40:42 pm
If you could please help me out there that would be excellent.

You are already using SoftwareSerial in the sender sketch.
3707  Using Arduino / Project Guidance / Re: Transfer of charge wirelessly via inductive coupling on: November 03, 2013, 07:35:21 pm
Edit: Oh, and do you know of any cheap signal generators?

Depends on the frequency range you want, but you could start with a simple 555 timer. Alternately, you can just buy a pulse generator for not much. For example, RM Cybernetics sell a power resonator which will automatically drive reactive circuits at resonance, or other modulators which let you control the duty cycle and frequency manually.

Who said it had  too..PeterH

The original poster did, in Reply #4. He's not just looking for wireless power transmission - he's looking for it over a considerable distance..
3708  Using Arduino / Programming Questions / Re: Serial Monitor data issue on: November 03, 2013, 05:16:18 pm
Presumably there is something wrong with your hardware, either a design fault or a faulty component.

Can you prove beyond any possible doubt that you have the same components connected in the same way shown in that article, and all the components are the right way round etc?
3709  Using Arduino / Programming Questions / Re: WiFiWebClient on: November 03, 2013, 05:12:42 pm
Just as a sanity check, what happens if you put the wrong WiFi SSID in, or the wrong password? I'd expect the WiFi association to fail, and if you confirm that happens that proves that it isn't just an encryption/authentication issue.
3710  International / Fran├žais / Re: Check the percentage of the computer's battery on: November 03, 2013, 04:04:26 pm
If I wanted to do this, I'd write an application to run on the PC which used the appropriate Windows API to read the battery level and print it out, and use Gobetwino to run that on request from the Arduino and return the results to the Arduino. The Arduino sketch would have to send the Gobetwino command string to the serial port at regular intervals, read back the command output and parse it to determine the battery level, then do whatever you want with LEDs based on the result. This assumes that the Arduino is connected to the PC by USB.
3711  Using Arduino / Programming Questions / Re: How do I make a binary int pragmatically based on sensors? on: November 03, 2013, 03:56:19 pm
I'd use a FOR loop to process each sensor in turn, convert the value to a bit and then use bitWrite() to write that bit to the corresponding bit number of a byte accumulator. Obviously the sensor array index and the bit number would be the same.

The code doing that would be a good candidate for putting into a function that returned the resulting byte.
3712  Using Arduino / Project Guidance / Re: Tact switch mimicking a keypress on: November 03, 2013, 03:40:58 pm
Any particular reason to use the hardware serial port on the rover? You're using software serial on the sender, and if that works on the rover too then it would free up the hardware serial port for diagnostic logging.

Given that you don't have basic comms working yet I suggest you write a simple sender that just sends a simple fixed string over bluetooth at regular intervals e.g. once per second, and write a simple receiver that just logs everything it receives to the hardware serial port, and use the serial monitor to see what it receives.
3713  Using Arduino / Programming Questions / Re: WiFiWebClient on: November 03, 2013, 02:49:11 pm
Can you look at your WiFi router's status to see what devices are connected to it, and confirm the Arduino is actually connected?

What network are you in? 10.0.0.19 is not a standard private network address and might imply you're in a corporate network behind a proxy server which is restricting internet access. In that case, it would be easier to connect to a web server within the same network as the Arduino.
3714  Using Arduino / Programming Questions / Re: Joystick: problem with analog pins on: November 03, 2013, 02:41:50 pm
The switch is wired from 5V to the input, because when it's wired from ground it doesn't show anything.
It must be a code problem..

Previously you were enabling the internal pull-up resistors with this code:

Code:
 digitalWrite(A1, HIGH);
  digitalWrite(A2, HIGH);
  digitalWrite(A3, HIGH);
  digitalWrite(A4, HIGH);

You need to either enable the internal pull-up resistors, or add external pull-up or pull-down resistors. Enabling the internal ones seems the most sensible approach to me.

When you have pull-up resistors the input normally reads HIGH, and reads LOW when the switch is closed. In order to detect that, your code would need to test for the input being LOW:

Code:
 if(digitalRead(A1) == LOW)
  {
    Serial.println("FRONT");
  }
  else if ...
3715  Using Arduino / Project Guidance / Re: Tact switch mimicking a keypress on: November 03, 2013, 02:35:29 pm
If you want the Arduino and the rover to communicate directly, then the Arduino will have to send what the rover is expecting to receive. What is the rover, and what is it expecting to receive over the bluetooth link?
3716  Using Arduino / Programming Questions / Re: Problem in Serial communication between 2 arduinos, TX and RX not getting data ! on: November 03, 2013, 12:49:04 pm
exactly this is how i connect them, i tried it before and was working totally fine,
Code:
Arduino 1 (TX) --------------  Arduino 2 (RX)
Arduino 2 (TX) --------------Arduino 3 (RX)

Maybe you  ought to expand on that, because it seems that you have the same serial connection going to multiple places.

Can you explain exactly what Arduinos you have got and what connections there are between them in terms of pin numbers?

Also note that the string you're sending over the virtual wire interface may be longer than the array you're storing it in since each value may be up to three decimal digits plus a comma, giving twelve characters of content plus the null terminator. I recommend you resize the array and use snprint() rather than sprintf() to avoid array overflow in future.
3717  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: November 03, 2013, 12:27:12 pm
Either get the person who provided the code to solve the problem, or solve it yourself. For the 'solve it yourself' part, you are going to have to dig into the code. I would start with the symptoms you have which indicate that millis() has been defined as a macro. Search the libraries and include files you're using and find where that is defined. Just from the name, ArduinoWrapper.h seems to me like a likely suspect. Why would you need to 'wrap' Arduino? Is it trying to emulate an Arduino runtime environment outside of the Arduino IDE? I wonder whether this code you've found is actually intended for Arduino, or just some lookalike API running under some other runtime environment.
3718  Using Arduino / Project Guidance / Re: Transfer of charge wirelessly via inductive coupling on: November 03, 2013, 12:22:03 pm
Check above links, viable product.......Sorry PeterH.

Check above links, does not transmit power over a 4" gap......Sorry TomGeorge.

A couple of organisations have been developing ways to transmit low power wirelessly over distances from a few inches to a few feet and working solutions have been set up in carefully controlled situations but it's an extremely difficult problem to solve and the most promising approaches seem to use radar-like directed and focussed transmission of EM radiation with a lot of clever feedback to maintain the connection. It's possible but it's very hard and there are no commercially viable solutions available yet. The 'modified toothbrush charger with a boost converter' idea is the most promising one for DIY implementation but is still only likely to give you a range of fractions of an inch.
3719  Using Arduino / Project Guidance / Re: Arduino follows human movement on: November 03, 2013, 12:16:10 pm
I've read that discussion. In general it's informative, but don't make any shorter paths to complete result.

It explains the issues involved and why this is a difficult problem. What else are you expecting? If you're hoping somebody will link you to an easy answer I think you're wasting your time because there isn't one.
3720  Using Arduino / Project Guidance / Re: Send serial data without the IDE? on: November 03, 2013, 12:10:19 pm
As Grumpy_Mike suggests, you would need to write a shell script or console application which read the current time and wrote it to the Arduino's serial port in a format that the Arduino expected. It would make sense to configure the OS to run this at OS boot time, or perhaps to run it at regular intervals if this is intended to keep the Arduino clock synced to the PC.
Pages: 1 ... 246 247 [248] 249 250 ... 839