please help me by sending an arduino uno example program

asked 27 Nov '14, 08:11

sreekanth's gravatar image

sreekanth
23225
accept rate: 0%

thanks scott for this wounder full software.it is really amazing. can we use this software for arduino mega!

thanks for your support. sreekanth kerala

(28 Nov '14, 08:35) sreekanth
1

@sreekanth - It's possible to use this with the Mega with some changes. I will be working on releasing a new version with changes for the Mega, but I haven't had time to begin yet.

(28 Nov '14, 14:42) Scott ♦♦
1

@sreekanth - I have a working prototype of the firmware for the Mega (no change is required for SoapBox Snap). I'll post it below. I hope to work this change into the next release.

(05 Dec '14, 21:32) Scott ♦♦

Here is an example program for the Arduino Nano. It has pins 7 and 8 configured as outputs and it uses COM28 as the serial port.

link

answered 27 Nov '14, 17:37

Scott's gravatar image

Scott ♦♦
61138
accept rate: 13%

Here is an example program for the Arduino Uno. I also has pins 7 and 8 configured as outputs, and linked to two internal coils (Light 1 and Light 2). These are controlled via pins 2 and 3. Connect a potentiometer to control the voltage to analog input A2. Turn the pot so it's near zero volts. Hold down a button connected to pin 3 for a short time to light pin 8. How long you have to hold down pin 3 is controlled by the pot connected to A2, so if you change the voltage higher, you have to hold the button longer. Then you can turn off the light connected to pin 8 by pressing the button connected to pin 2 (which also lights pin 7 momentarily). This program uses COM27 for communications.

link

answered 27 Nov '14, 17:44

Scott's gravatar image

Scott ♦♦
61138
accept rate: 13%

Here is an example program for the Arduino Mega 2560. It uses COM29. It's similar to the Arduino Uno example above, but uses discrete input 41 instead of input 2, and uses analog input A14 instead of analog input A2. Note that this includes a new Arduino firmware that you'll have to upload first. If you've previously tried uploading the Uno/Nano firmware to a Mega already, make sure you upload the ClearEEPROM sketch first, or else it won't run correctly.

This new firmware allows the use of analog inputs A0 through A15 and discrete I/O pins 2 through 53 (except pin 13 which is still a status LED). It also allows 5 times more ladder logic program space.

Make sure you have the correct board selected in your Arduino IDE. Additionally, the BoardSelect.h file in the sketch has #define statements to select which board you're using:

// make sure exactly one of these lines is uncommented:
//#define UNO
//#define NANO
#define MEGA
link

answered 05 Dec '14, 21:40

Scott's gravatar image

Scott ♦♦
61138
accept rate: 13%

edited 12 Dec '14, 10:22

i checked this examble program with arduino mega and it is working.thanks scott.its wonderfull software.please try to provide analog output option also.thank you once again

(12 Dec '14, 07:12) sreekanth

scott, is there is any option for using pwm or analog output?

link

answered 30 Nov '14, 01:13

sreekanth's gravatar image

sreekanth
23225
accept rate: 0%

No, not yet

(01 Dec '14, 09:02) Scott ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 27 Nov '14, 08:11

Seen: 73,737 times

Last updated: 12 Dec '14, 10:22

Related questions

powered by OSQA