Show Posts
Pages: [1]
1  Products / Arduino Yún / Re: Temboo - Resetting Yun on: February 07, 2014, 10:15:06 am
Actually, I just figured it out ... Here is the solution that is provided by Temboo:

The sketch needs to be changed from Serial to Console

void setup() {

And, all subsequent Serial statements get replaced by Console.  Works perfect ...
2  Products / Arduino Yún / Temboo - Resetting Yun on: February 06, 2014, 09:38:06 pm

I am working with the Yun and tried a few different Temboo examples and have everything working perfectly -- that is, when I upload the Sketch.  I'm trying to figure out how I can make a given sketch work after resetting or restarting the Yun.  More specifically, I can successfully upload and run the sketch.  However, the moment I disconnect  (i.e.,, unplugging it from the USB) and then reconnect the Yun, I need to reupload the sketch to make it work.  For example, the data logger program where the yun reads a sensor and uploads to a Google spreadsheet works perfectly when I upload the sketch.  However, if I unplug the Yun and then plug it back in again, it no longer logs the data.  I'm assuming that the sketch would work just like a traditional Arduino sketch -- e.g., if I install the blink program, unplug the arduino and put it to another power supply, the blink program would continue to work.

I'm guessing that I am missing something pretty obvious...

3  Using Arduino / Sensors / RFID sensors - determining range on: January 29, 2014, 12:20:47 pm

I have been looking at various RFID tag systems for the Arduino and trying to locate one that will detect a tag at a distance of 12 inches or less.  I'm finding ones that work really close -- i.e., within a few inches -- but not finding something with the noted range.  What details of the RFID system should I be paying attention to for determining range (or, ideally, adjusting range)?  Any suggested RFID system that might meet this need?

4  Using Arduino / Sensors / Re: How to determine whether a sensor will work with Arduino on: January 15, 2014, 11:44:57 am

Thanks so much for the reply -- very helpful.  I am following up on your recommendations, and it certainly makes sense!

5  Using Arduino / Sensors / How to determine whether a sensor will work with Arduino on: January 12, 2014, 08:52:52 pm

I am interested in measuring / monitoring weight -- a rather large amount of weight, which will require an S-style load sensor.  Off the shelf electronic hanging scales are quite expensive, so I am hoping to construct my own.  So, I am wondering if anybody could help me figure out, or perhaps point me to the right place, that could help me determine whether a given sensor would work with the Arduino.   This is the sensor I have in mind: 


Anything that I could or should be looking at?  Any guidance would be greatly appreciated.

6  Using Arduino / Sensors / Creating a sensor to measure when hand is close to face on: December 19, 2012, 10:53:55 am
Ok, this application might sound a bit odd.  I am trying to figure out what kind of sensor I might use that could be used to sense when a person moves his or her hand close to their face.  I need the sensors to be very small and unobtrusive to the wearer -- and, with that said, the sensors obviously have to be wearable.  I am new to physical computing, so I don't know the right direction to explore. 

The precision of the measurement does not have to be exact -- and, the type of data that I am ultimately looking to collect is simply doing a running count.  For example, my ideal sensor would be bracelets, perhaps with embedded magnets.  Then, another sensor would be connected to the persons collar or a necklace.  So, assume that a person has a chronic nail biting habit.  Each time the persons hand went to her or his mouth, it would log the event.  Of course, this isn't precise measurement because it simply indicates whether the hand reached the general area of the mouth.  And, yes, you would have a lot of false positives in the event of sneezing, scratching, and eating, but all these errors in data collection are easily managed from my point of view.  Again, I am really  just trying to solve the problem of identifying the event when the person's hand goes close to her or his face. 

Any suggestions for sensors to consider?

Thanks in advance!
7  Using Arduino / Networking, Protocols, and Devices / Ethernet switch working, but not Internet switch on: December 17, 2012, 09:07:15 pm

This comes with the official preface that I am a novice with all aspects of Arduino, including networks, so please excuse any basic errors on my part.  So, I am completely determined to get my Arduino connected to the Internet, for purposes of data logging and controlling devices remotely.  I am starting with this set of Instructables on Ethernet switching:

Right now, I am working with the following hardware:

-Uno Mega2560
-Seeed Studio Ethernet shield (Wiznet 5100)

So far, I have everything working, and I can control the LED's from my ethernet.  However, once I leave my home network (e.g., using 3g instead of wi-fi on my phone), I cannot control the device.  I'm guessing it has something to do with either the IP or the gateway addresses, but I don't know enough about networks to begin to debug this problem.  Any suggestions?

BTW, I have my Ethernet shield tied directly into my router.  My computer that I am using to get everything configured is a Mac.

Thanks in advance.

8  Using Arduino / Project Guidance / Re: Debugging TV-B-Gone on Mega on: December 13, 2012, 03:24:54 pm
Ok, I got it working -- I think it was my power supply.  That is, I have a 9v battery I was using to connect to the board to make it portable.  When I plugged the board into my computer, the onboard LED was much brighter and it worked.  Can I just attribute this problem to a low 9v battery?
9  Using Arduino / Project Guidance / Debugging TV-B-Gone on Mega on: December 13, 2012, 02:32:50 pm

I am still to the Arduino and carefully working through various tutorials and beginners projects.  I have a number of successful projects under my belt, but I am stumped by the TV-B-Gone build from Ken Sherrif's blog: 

I am using the Arduino Mega (2560), and it appears I have everything squared away on the software side with respect to the libraries -- and a user comment indicated that it was necessary to use pin 9 instead of 3, which also requires a respective change in the main.h file.  No errors in compiling or uploading.  I tried the code using both pin 9 and pin 3, but no luck.  I have inspected and reinspected the build on my circuit board, and cannot seem to find any problems. 

So, here are my questions: 

1.  What is a recommended way of debugging or identifying the source of the problem when you cannot "see" the action.  In other words, if I was running a servo, I guess I could see whether the motor was turning.  But, since I am dealing with an infrared LED, I am not able to "see" whether it is working -- is that correct?  If so, what do you recommend for identifying the source of the problem? 

2.  When I press the button switch, I can observe two short blinks followed by three really short blinks -- is this helpful for debugging?

3.  I have a general purpose npn transistor -- mine is 2n3904, whereas the transistor on the site is 2n4401 is used.  Is that a potential problem? 

4.  Any other thoughts on how to proceed?  Again, keep in mind that I am a novice, so really technical descriptions will probably not be well understood, but I am committed to doing my homework!

Thanks in advance.

10  Using Arduino / Programming Questions / Re: Blink without delay, extended to more complex switch patterns on: December 05, 2012, 08:30:48 pm
Thanks for these suggestions.  I am looking at the examples provided and will work toward a workable solution -- indeed, your help is appreciated.  Just curious, do you think that a real time clock (rtc) is an option?
11  Using Arduino / Programming Questions / Re: Blink without delay, extended to more complex switch patterns on: December 04, 2012, 01:52:45 pm
Ok, I will take a look into the array, although I admit that I don't fully understand it at this point.  If there is any further sample code that anybody has to guide me, that will be useful.  During the interim, I will be studying the array function and the snippet provided. 

12  Using Arduino / Programming Questions / Blink without delay, extended to more complex switch patterns on: December 04, 2012, 01:23:33 pm

I am currently working on a timer that will operate a switch at fixed intervals.  While that switch is operating, I would also like to take sensor readings that will operate a separate set of switches.  Given that I want to perform other tasks while the timer is performing other functions, it is pretty clear I need to avoid the delay function.  Right now, I have been examining the "Blink without Delay" code and seem to understand how that is operating.  However, I am having a difficult time extending this example to other intervals.  My hope is that I can get a few suggestions to help sort out this problem. 

So, right now I am looking at the standard 'Blink Without Delay' code that is timing the LED to go on and off at 1 second intervals.  What should I be doing to make the light operate as follows:

Step 1:  On for 5 seconds, off for 10 seconds
Step 2:  On for 2 seconds, off for 5 seconds
Step 3:  On for 7 seconds, off for 2 seconds

Those are just arbitrary values, but if I get the general concept with these values, I can easily adapt the code to my needs -- right now, I just can't seem to get the logic for establishing these intervals!  Ok, if that makes sense, a critical next step is to be able to perform simultaneous readings of a sensor that operates a different switch independent of this timer.  I don't have to solve this issue now, but I want to ensure that the code I write can incorporate this independent task. 

I hope this makes sense.  Any bit of guidance you can offer at this point would be GREATLY appreciated.

Thanks in advance.

13  Using Arduino / Programming Questions / Re: Adapting ButtonStateChange code on: November 15, 2012, 06:00:22 pm
Guix and Arrch:

Thank you both for your very useful replies.  With your assistance, I was able to get my programming running exactly the way I envisioned.  Although it is a very basic program, it is my first real world application so I am pretty jazzed about seeing it come together!

14  Using Arduino / Programming Questions / Adapting ButtonStateChange code on: November 15, 2012, 03:29:41 pm

I am new to Arduino and working through various examples with my Arduino board, with a Sparkfun Inventor's kit, although I am still a long way off from being an inventor!  Regarding my problem, I have successfully cmopleted the ButtonStateChange example on the Arduino site, with the various tutorials.  Here is a link to the full set of code:  It is working exactly the way it should be.

Right now, when the button is pushed, the number of button pushes are being logged.  But, now I want to make a slight adaptation, and I am hoping somebody might be able to assist.  Here is my intermediary goal (I have a few other things to do subsequent to the following changes, but right now it is just working out this problem): 

1.  When the button is pushed, I would like the light to remain on for 15 minutes.  I am trying to work on some delay procedure to make this happen but I am not quite sure if this is the right approach.

2.  I want to continue recording the number of times the button is pushed, but I do not want any action to take place during the 15 minutes that the light is on.  In other words, if the button is pushed, it should record that it is pushed, and the light should remain on for 15 minutes.  However, if the button is pushed again while the light is on, I do not want that event recorded, and the light needs to remain on for the remainder of that original 15 minute interval.

3.  When the 15 minute interval is over, I would like the light to go off and have the system wait until the button is pushed again.

Here is the snippet of the loop code, and the full code can be found at the aforementioned link:

void loop() {
  // read the pushbutton input pin:
  buttonState = digitalRead(buttonPin);

  // compare the buttonState to its previous state
  if (buttonState != lastButtonState) {
    // if the state has changed, increment the counter
    if (buttonState == HIGH) {
      // if the current state is HIGH then the button
      // wend from off to on:
      Serial.print("number of button pushes:  ");
    else {
      // if the current state is LOW then the button
      // wend from on to off:
  // save the current state as the last state,
  //for next time through the loop
  lastButtonState = buttonState;

  // turns on the LED every four button pushes by
  // checking the modulo of the button push counter.
  // the modulo function gives you the remainder of
  // the division of two numbers:
  if (buttonPushCounter % 4 == 0) {
    digitalWrite(ledPin, HIGH);
  } else {
   digitalWrite(ledPin, LOW);

Thanks in advance for your assistance.


Pages: [1]