Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1] 2
Author Topic: Arduino
Mr.What
Administrator
Posts: 196
Permalink
Post Arduino
on: December 18, 2011, 15:34
Quote

Do we have a copy of that Arduino 101 book? I see the O'Reilley Arduino cookbook. Any suggestions on how to get started playing with Arduino?

My first project idea might be a temperature controller. It will need to turn up a small muffin fan when the temperature drops. (Blowing air over into a wood-burning stove)

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 4, 2012, 14:26
Quote

The nano is only $40. less than Bluetooth modules for arduino boards. Can I communicate with my device over this bluetooth connection, or is it dedicated to just uploading code?

My goal would be to be able to write an Android app that could provide a display/control for my arduino devices, instead of getting into LCD drivers.

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 4, 2012, 15:34
Quote

I'm looking to sense temperatures between about 80-450F. What kind of sensor should I get? Where can I get thermal-safe wiring for it?

Will we need to do something tricky to establish a calibration? Some sort of voltage reference?

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: January 4, 2012, 16:38
Quote

Arduino nano clones can be had for $16.90(includes shipping)

http://www.dealextreme.com/p/arduino-nano-v3-0-81877

BT module $9.20 (includes S&H)

http://www.dealextreme.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299

As for the probe, your going to probably want a food grade one, Looks like they have come down in price, I recall clsoe to 1/2 the cost of Mikey Sklar's YATC2 was in the probe.. looks like they are down $8-20 range

http://www.amazon.com/Replacement-Probe-TW362B-Oven-Thermometer/dp/B0048GD8RY/ref=pd_sim_sbs_k_2

Probe rated to 392 F
Cable rated to 500 F short term (probably extendible by insulating/heatspreading.)

-Quelab, Come make something!

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 5, 2012, 09:16
Quote

I don't think I need food grade... just for oven temp, not meat temp. The problem I'm seeing with thermocouples is that they react to temperature difference. I think most of them are only a few inches long. I wonder if my digital meat thermometer somehow has the refrence temperature at the digital device, some 3-4' from the probe? That probe looks a lot like my meat thermometer, and it could work just fine for this app. I might not need to put the cable in the smoker... just drill a hole for the probe tip?

Will I need some sort of pre-amp (op-amp signal conditioner?) to read the thermocouple from an Arduino A/D... or can the Arduino be set up to read the thermocouple voltage directly?

Other question to repeat... can I communicate with my "sketch" over the USB, or is the USB dedicated for program upload? On VxWorks, we can give a "load" command over serial, then after our image is loaded, it returns to a command prompt, over which we can even do things like printf and scanf.

In the spirit of iterative development, I'm thinking of designing a circuit to run uncalibrated. Just turn a dial for warmer/cooler... let the human deal with figuring out what pot position corresponds to 200F for a given cooker on a given day. (Since thermocouples respond to temperature difference, my "reference" voltage changes weather it is 20F outside (winter) or 110F outside (summer))

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 5, 2012, 09:22
Quote

Quote from adric on January 4, 2012, 16:38
Arduino nano clones can be had for $16.90(includes shipping)

http://www.dealextreme.com/p/arduino-nano-v3-0-81877

BT module $9.20 (includes S&H)

http://www.dealextreme.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299

I dunno how the programming will be for the BT module.
It looks like a great way to go, though.
Since that one has wired USB, I'm sure I could use that BT module for the human interface.

I thought that the new, fancy MAKE nano used a BT only (no USB) interface. $40. Serial over BT protocall.
Either should work.
I bet that if we can communicate over the "serial" link to the Arduino, that would be easier than using libraries to speak over the BT add-on module.

http://www.amazon.com/Replacement-Probe-TW362B-Oven-Thermometer/dp/B0048GD8RY/ref=pd_sim_sbs_k_2

Probe rated to 392 F
Cable rated to 500 F short term (probably extendible by insulating/heatspreading.)

I bet this will work fine. Especially if I only have the tip inside the cooker. In fact, upon second look that seems to be EXACTLY the probe on my meat thermometer... I gotta go and see if I can increase my order to several of those probes.

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 5, 2012, 09:48
Quote

Quote from adric on January 4, 2012, 16:38
I recall clsoe to 1/2 the cost of Mikey Sklar's YATC2 was in the probe..

Seems odd. Thermocouples are necessary for large temperatures (ovens), but for dedicated fermentation control or sous-vide, a thermistor should work, and be a lot cheaper, easier, and more accurate.

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: January 5, 2012, 14:18
Quote

Quote from Mr.What on January 5, 2012, 09:16
I don't think I need food grade... just for oven temp, not meat temp. The problem I'm seeing with thermocouples is that they react to temperature difference. I think most of them are only a few inches long. I wonder if my digital meat thermometer somehow has the refrence temperature at the digital device, some 3-4' from the probe? That probe looks a lot like my meat thermometer, and it could work just fine for this app. I might not need to put the cable in the smoker... just drill a hole for the probe tip?

Food grade may not be needed, but its nice to know its stainless and non fuming, and designed for this kind of work. its probably nearly the same as your thermometer. they are very commonplace tech, although the cost is mostly in the Q&A that you reliably get the same signal at the same temp every time, and that the reading range is pretty flat.

Will I need some sort of pre-amp (op-amp signal conditioner?) to read the thermocouple from an Arduino A/D... or can the Arduino be set up to read the thermocouple voltage directly?

Not sure, but i think it can via the analog inputs just read it, with a known source one can calibrate it.

Other question to repeat... can I communicate with my "sketch" over the USB, or is the USB dedicated for program upload? On VxWorks, we can give a "load" command over serial, then after our image is loaded, it returns to a command prompt, over which we can even do things like printf and scanf.

Yep you can get serial data back over the usb from the arduino, (i was mentioning tethering it for datalogging/offboard control)

In the spirit of iterative development, I'm thinking of designing a circuit to run uncalibrated. Just turn a dial for warmer/cooler... let the human deal with figuring out what pot position corresponds to 200F for a given cooker on a given day. (Since thermocouples respond to temperature difference, my "reference" voltage changes weather it is 20F outside (winter) or 110F outside (summer))

I think that's why they use thermisters in most probes/thermometers because at 100C you get X resistance and at 50c you get 1/2X (or whatever their profile is), once you have the program setup and the type of probe zeroed in, i think you could have it pretty accurate. now i dont know if outside temp changes inside temp enough to change the cooking profile/times.

-Quelab, Come make something!

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 5, 2012, 14:59
Quote

Quote from adric on January 5, 2012, 14:18
...now i dont know if outside temp changes inside temp enough to change the cooking profile/times.

My concern is that AFAIK, a thermocouple returns a voltage depending on a temperature differential. i.e. How much hotter is the probe tip than the probe base? Hence a voltage for 100C on a 0C day might be similar to the voltage for 130C on a 30C day.... if it compares to temperature near the base of the thermocouple line.

Since most thermocouples are for home use, I think they just assume
that the reference temperature is around 22C.

This article:
http://quelab.net/wordpress/wp-content/uploads/2012/01/thermocouple.pdf
http://www.analog.com/library/analogDialogue/archives/44-10/thermocouple.html
seems to indicate that signal conditioning will be necessary. We'll need an op-amp, some R's and C's.
My big question: Where's the "reference" junction? Does that whole probe have the special metal wires, hence the reference is at the little 1/8" mono plug?

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: January 5, 2012, 16:26
Quote

That's why i was thinking we should stay clear of Thermocuples. And stick with the simplicity of a thermistor. some of the Silicone/Germanium Thermistors can deal with -40C to 500C http://www.adsem.com/gpage1.html and it looks like they are frequently used in ovens and alarms, and other sensory stuff. and they have predictable output based upon resistance at a given temp.

And they have the advantage of just needing a simple resistor to serve as a voltage divider for arduino. here is sample code and a simple schematic. for a normal non high temp thermistor (so some code changes will probably be needed) http://arduino.cc/playground/ComponentLib/Thermistor

-Quelab, Come make something!

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 5, 2012, 18:17
Quote

Quote from adric on January 5, 2012, 16:26
That's why i was thinking we should stay clear of Thermocuples. And stick with the simplicity of a thermistor. some of the Silicone/Germanium Thermistors can deal with -40C to 500C...

I had no idea thermistors could go to 500C. That would be a lot easier. How can we create leads that can withstand heat up to 500F?

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: January 6, 2012, 00:36
Quote

id say find some hi-temp insulated wire. (ive seen it for the internal wiring of heaters and other appliances) this site atleast outlines some of the types and their capable range http://www.omega.com/techref/wireinsulation.html

looks like this kiln supply place may have the wire we would need if we cant find it in a local hardware/electronics store. http://pottery-kilns.com/magento/kiln-parts/wr-12-hi-temp-insulated-wire.html

and then id use metal crimp connectors. and depending on the conditions(i really dont know how corrosive it is where you might be wanting to read temperature from. perhaps crimping it into a small piece of pipe or perhaps folding a small envelope of thin sheet metal

-Quelab, Come make something!

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 6, 2012, 07:25
Quote

This discussion may be of general interest. I'm going to start a new topic on high temperature sensing.

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 9, 2012, 07:36
Quote

Do you have a convenient way to attach a project "shield" to an arduino development board? Perhaps even just some rows of pins I can plug into the arduino board sockets, onto which I can solder my LED's, sensors, and servo drivers. Where can we get some old-fashioned, no-connections pegboards to wire up our support circuits?

On another note... I have not yet been able to implement 2-way communications with the Arduino over serial. Perhaps the serial monitor is problematic. Here are some tips to try from the WWW:

if you did Serial.begin(115200), and your Arduino is at ttyUSB0, do something like

stty -F /dev/ttyUSB0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts

Then you should be able to do things like :

tail -f /dev/ttyUSB0
echo set temp 220 > /dev/ttyUSB0

to communicate. I hope that we can do both simultaneously. I dunno if a similar device will exist to use via Java on Android.

Another method suggested was

screen /dev/cu.usbserial 9600

You may need an stty command similar to above to get the settings on ttyUSB0 as desired.

There is also

cu -l /dev/ttyACM0 -s 115200
adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: January 9, 2012, 13:20
Quote

I have one of these, http://www.dealextreme.com/p/arduino-prototype-shield-with-mini-breadboard-65273 ive not come up with a need for it yet ,so i can sell it to you and buy another one, $8

Comes with solderable protoboard, or the option of sticking down a small breadboard(came with)

Just checked my android, indeed there is a stty command available, as is there a echo, not sure its on all roms, but worse comes to worse, we root your phone and put a recent version of busybox on it and that also has stty and many other common unix shell options.

-Quelab, Come make something!

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 20, 2012, 08:56
Quote

Found the problem with my software. Arduino Uno has 2K ram limit. Although my code was small, I had 1700 byte array of history, that I was planning to analyse for adaptive control parameter updates. That took my total program over 2K RAM. I will simplify my AVR code, and do any adaptive control from the host, monitoring data over the serial port.

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: January 27, 2012, 07:53
Quote

It looks like every time I connect/disconnect to the serial port on my Arduino Uno (R1 i think), it does a reset. Is this typical behavior? I guess I can live with this, but I'll need to learn how to save state in the EEPROM to resume where I left off after a reset.

Mr.What
Administrator
Posts: 196
Permalink
Post BlueTooth Serial
on: February 7, 2012, 15:18
Quote

DealExtreme no longer seems to list the $8 Arduino bluetooth module. However, they have a generic BlueTooth serial transceiver for like $6. I hope it is the same thing, without the headers.

My best hopes, so far, are that all I need to do is hook up 4 wires: Gnd, Vcc, TX, RX to the proper pins on an Arduino, and I now have serial over Bluetooth. No extra libraries or anything. I'm hoping that it will take over for the USB hardware/programming serial when the USB is not plugged in.

On the other side, I see several bluetooth-serial terminal emulators for the Android. My hope is that I can just use one of these and be able to use the same simple serial communications interface I have been using through USB to control (if not program) the Arduino device.

Could it be this simple?

i.e. If I design a serial interface, I type commands, and the Arduino prints out status, I can do this from a "BlueTooth serial terminal" app, and have a wireless interface for my device, without changing any Arduino software, or writing some sort of bluetooth client?

Mr.What
Administrator
Posts: 196
Permalink
Post Brown out detection ISR
on: February 8, 2012, 10:17
Quote

I guess the arduino is set up to reset on brown out.
I'm having trouble finding out how to alter this behavior.

I'd like to set the brown out voltage high enough that I can still write EEPROM. When the voltage gets low, write state to EEPROM, then go to sleep until some wake-up event like higher voltage or serial port activity.

Any hints about where to read about doing something like this?

bandit
Administrator
Posts: 321
Permalink
Post Re: Arduino
on: February 15, 2012, 22:05
Quote

Thermistors are cheap, but non-linear. The math is not bad, just slow.

Pro-level high-temp sensors include RTD's, not sure of the cost (I didn't care when I did a system with RTD's.) Thermocouples are also possible. Both will need conditioning. I have a circuit kicking around at home, but the interwebs is faster.

One thing to be aware of: don't get so hot you melt the solder!!! You will need high-temp wire and a high-temp epoxy or other potting material. (Careful - the expansion/contraction of the potting material vs the wires/leads/etc can cause a cracking failure.)

A quick Digikey search for thermistors to 250 degC shows 7, over a variety of resistance ranges and tolerances (1% to 5%). First one is 495-2625-ND. All are under $4 for quantity 1. Another is 235-1104-ND, datasheet at http://www.thermometrics.com/assets/images/dk.pdf

One of the inaccuracy points is the resolution of the ADC over the temperature range.

The link Adric has above is a good start.

bandit
Administrator
Posts: 321
Permalink
Post Re: Arduino
on: February 15, 2012, 22:10
Quote

(to state the obvious) The brownout is coming from a power dip. It's not the voltage - you are having an extra current draw from somewhere. The brown-out reset is actually preventing other forms of corruption. Are you actually shorting VCC and GND when you disconnect the serial?

Mr.What
Administrator
Posts: 196
Permalink
Post Re: Arduino
on: February 24, 2012, 08:34
Quote

When I say "disconnect serial", I mean thinks like kill the screen process. It is just a software/device file disconnect. not a physical one.

Mr.What
Administrator
Posts: 196
Permalink
Post Bluetooth module
on: February 28, 2012, 09:04
Quote

This bluetooth module is available for $6.60 or less form DealExtreme.

http://quelab.net/wordpress/wp-content/uploads/2012/02/BT0417C_datasheet.pdf

I have one on order and will report.
It is rumored to be able to do serial-over-bluetooth with a simple 4 wire connection to arduino. (power/ground/tx/rx)

Mr.What
Administrator
Posts: 196
Permalink
Post Serial over Bluetooth module AT commands
on: February 28, 2012, 09:10
Quote

These are AT commands to control this bluetooth module
http://quelab.net/wordpress/wp-content/uploads/2012/02/BT0417C_ATcommand.pdf

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: March 5, 2012, 11:33
Quote

ProtoShields,

As i was mentioning yesterday for our starter arduino kits, we could just go with the 170pin mini breadboards. which can even be moved to a blank protoshield to make it a solder less protoshield.

They come in pairs, and work out to be about $2.50 each
http://www.robotshop.com/productinfo.aspx?pc=RB-Cix-07&lang=en-US

pair them with actual shields (without the solderless breadboard $4.39)
http://www.robotshop.com/cytron-arduino-proto-shield.html

Did we decide on 15 units? if so im willing to grab 15 of these pairs.

-Quelab, Come make something!

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: March 5, 2012, 12:37
Quote

Linkdump,

Here is a nice article on using mosfets for controlling larger power things than the arduino can control, Mr What, has already covered alot of this in his smoker project, but this one is pretty nice and clear for should be handy for anyone new to these things

http://bildr.org/2012/03/rfp30n06le-arduino/

-Quelab, Come make something!

Mr.What
Administrator
Posts: 196
Permalink
Post SD card holder and more
on: June 12, 2012, 10:39
Quote

SD card BoB for $3.22 :

http://www.suntekstore.com/goods-14004276-sd_module_card_reader_slot_socket_for_arduino_arm_mcu.html

Holds SD card and provides header/breadboard pins for wiring to Arduino. Has extra circuits for level conversion from 5 to 3.3v.

Protoshield with mini breadboard, $5.66:
http://www.suntekstore.com/goods-14002530-arduino_protoytpe_shield_with_prototype_mini_breadboard.html\

Ethernet module, $6.29:
http://www.suntekstore.com/goods-14004282-enc28j60_ethernet_lan_module_for_arduinoavrlpcstm32.html

(10) male and (10) female 40-pin headers, $3.22:
http://www.suntekstore.com/goods-14001662-10x_single_row_male_and_female_40_pin_header_strip_254mm.html

Mr.What
Administrator
Posts: 196
Permalink
Post Bluetooth/Serial conflict
on: June 14, 2012, 09:43
Quote

When using a Bluetooth/SPP module wired to the standard serial TX/RX pins, D0 and D1, it conflicts with serial control from USB. Is there a way that I can detect when the USB cable is present, and disable the Bluetooth module?
Electrical, software, or mechanical solutions all OK.

The best electrical solution I have is a SPST switch on the module power line. I checked this, and it does work. It would be convenient if I could get this to happen automatically when the USB cable is plugged in.

adric
Administrator
Posts: 178
Permalink
Post Re: Arduino
on: June 14, 2012, 17:36
Quote

i suspect a small normally closed relay or even a transistor connected to the usb power pin, to power down the bt. module. might need a diode to keep any other power source from triggering it if its all just interconnected to the usb port.

-Quelab, Come make something!

Pages: [1] 2
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.085 seconds.

 

Comments are closed.