Go Down

Topic: Do People Create And Sell Sketches? (Read 6128 times) previous topic - next topic

Ralph_S_Bacon

So you're an Arduino noob. As were we all, once, of course.

That's why I've created a series of YouTube videos which you can watch, rewatch and learn from. That's how I started with the Arduino, some years ago now.

And you definitely need to slow down; try and get one or two things properly understood and then you will realise it's not rocket science, just a lot of stuff to understand. And no-one can possibly understand it all and not within a week!

I wrote my first blink LED program in assembler and worked up from there; I'm not suggesting for one second you do that but getting the Arduino to blink, then getting it to blink twice or three times can teach you more in one session than 100 questions on here!

Anyway, have a look at my YouTube channel and if you like what you see, subscribe so you don't miss future episodes. It's specifically designed for noobs who want to get their hands dirty  :)


URL in my signature below... Good Luck!
My YouTube Arduino Videos: https://www.youtube.com/RalphBacon
Arduino and electronics videos designed to get your project off the ground.
Dog Walking and Pet Sitting in Northampton: www.wagnificentpetcare.co.uk

mrburnette

#31
Mar 29, 2016, 02:51 pm Last Edit: Mar 29, 2016, 02:58 pm by mrburnette
<...>
I'm hoping to start by having several battery powered wireless sensors, (nothing fancy, just cheap ones that come in Arduino kits, 3-Axis, Ultrasonic, temp, etc.). With a range of 50m or more (100m would be great), all linked to a battery powered hand held LCD(Touch) that displays the sensor readings. I've seen similar projects, weather stations, alarms, home automation for example. But I'd like to eventually expand on those idea's, perhaps add a camera and motor control later on.
<...>
I do have a little experience with batteries and plan to use 2 x 18650 cells in series(7.4v) to power everything.
Age 50 is a good time to start a 2nd hobby... things have changed lots from when I started building Knight Kits back in the 60's at age 12.  Just think about all the stuff you do not have to unlearn because it is practically needless unless you are repairing old tube radios  :o

So, 18650 really does not tell me anything other than the size of the battery... what one really needs to know is the true mAh rating (note that the Chinese manufacturers have a nasty habit of making outrageous claims about battery mAh ratings; but the true figure is more likely 3000mAh to 5000mAh.)

I'm going to assume for a moment that you just want to put out a sensor/sender and receive the data.  100 meters is beyond the best Bluetooth range, so you need to look at other RF technology.  WiFi is a possibility, but I'm going to let you do the research since the price range is broad.  When you do your investigation, consider two things: WiFi (2G/5G) is microwave and you need line-of-sight and secondly antennas can be built/purchased that are not omi-directional and can produce "gain" by directing the RF energy.

The next thing you need to know about RF senders is that the battery drain is significantly increased during the transmit event.  The more often you transmit, the higher the average drain and the less battery time before a recharge is necessary.  (Also, Lithium batteries must not totally drain ... the low-water mark is different for different chemistry makeup.)  RF bands are controlled by the country and in the U.S.A. that would be the FCC.  The unlicensed bands have strict power output maximums: read-up on this topic.  RF bands also have a lots to do with range and data bandwidth, but other than video, the stuff you are talking about is low-bandwidth.

Sending video is a very specialize use and you really need to read-up on this topic.  Slow-scan can be done with a microprocessor, but getting realtime (27 - 30 frames per second) will significantly cost you: power consumption, hardware costs, battery current draw, etc.  Again, lot of model and robot makers are into video and the area is very specialized.

I want you to look over a couple of RF+Arduino clones and read about performance, range, issues:
Moteino: http://lowpowerlab.com/blog/category/moteino/
JeeNode: http://jeelabs.net/projects/hardware/wiki/JeeNode

The reason for reviewing those links and doing some research is to determine if such inexpensive technology will work as packaged.  If not, the project must document why and move on to looking for a better fit.  Why is this necessary?  Well, simply to understand what "special sauce" will be necessary to create a perfect fit.  Finding the right widget means often eliminating the wrong widget... more specifically, narrowing down the must-have specifications.

A couple of years ago, I took a look at the RF12B units with the idea of using them around the house.  I have since decided to use the ESP8266 as a separate network un-bound to my home WiFi.

As far a programming, you are alive, right?  Then you can program.  It will take a bit of time to work up to proficiency, but it is certainly not impossible or even hard.  What can be difficult sometimes is weeding through the noise to find an approach... or, an approach that you can understand.  One of the great issues with programming is how flexible approaches can be; which is to say there will likely always be individuals that will scream, "It could be done so much more efficiently!"

Good luck,

Ray

ChrisTenone

...

And you definitely need to slow down; try and get one or two things properly understood and then you will realise it's not rocket science, just a lot of stuff to understand.

...
Unless of course, you strap one onto a model rocket. Then it IS rocket science.
What, I need to say something else too?

Ralph_S_Bacon

#33
Mar 30, 2016, 08:55 am Last Edit: Mar 30, 2016, 08:55 am by Ralph_S_Bacon
Unless of course, you strap one onto a model rocket. Then it IS rocket science.
Can you send me the sketch for that, I want to try that one out!!! The first Arduino Uno in orbit sending back space data via I2C over a 433 Mhz radio link, now that WOULD be something!

Oh, you weren't being serious. Damn, I feel stoopid now  :smiley-kiss: :smiley-twist:
My YouTube Arduino Videos: https://www.youtube.com/RalphBacon
Arduino and electronics videos designed to get your project off the ground.
Dog Walking and Pet Sitting in Northampton: www.wagnificentpetcare.co.uk

mrburnette


Shadeyman

#35
Mar 31, 2016, 08:40 am Last Edit: Apr 01, 2016, 10:28 am by Shadeyman
Mornings guys, thanks for your replies.

Well, I've spent the last few days trying to familiarize myself with the basics. I've brought a few bits, Mega 2560, Nano, NodeMCU, XBee, LCD's, Sensors etc and been trying example sketches.

I'm still waiting for the Due LCD shield to be delivered, so while I'm waiting I've managed to blink the LED on the Nano and the Mega and change the speed at which it blinks.

I've also manged to get a 3 axis, gyro, accelerometer and temp to output via the serial.

I then "upped my game" and managed to get demo's to play on a 320 x 240 display and another demo playing on a 320 x 480 display.

I'm now looking at the demo sketches for the things I manage to do and trying to understand what each part of the sketch does. I've managed simple stuff like increasing and decreasing the size of the coloured boxes in the demos, changing the size of text and altering what the text says to something rude just to amuse myself.  :o

I'm hoping doing this basic stuff helps prevent me asking too many daft basic questions here on the forum and boring you guys to death.

A pair of 18650 batteries are wired in series and give me 7.2v and 2500mAh. If I need more capacity I'll add more pairs.

All this while keeping my 2 sons(8 and 9) and 2 grandsons(5 and 8 ) amused, my head hurts ..  :)

ChrisTenone

Mornings guys, thanks for your replies.
...
All this while keeping my 2 sons(8 and 9) and 2 grandsons(5 and 8) amused, my head hurts ..  :)
Sounds like you're having fun.n  :o ;)

The next thing to learn is Arduino's form of concurency - timing by millis, and banishing delay and other ways your code will sit waiting. Using millis will let you use any kind of input and any kind of output without waiting for anything to finish running.

Take a look at this thread. It's a clear tutorial on correct timing technique.
What, I need to say something else too?

Shadeyman

WOW!  :o

I think I may died of old age before I fully understand what that thread is about.  :smiley-confuse:

ChrisTenone

Yet learn it you must. Or be content just to make a single LED blink.
What, I need to say something else too?

Shadeyman

#39
Apr 06, 2016, 10:20 am Last Edit: Apr 06, 2016, 10:29 am by Shadeyman
Well the shield for the 7 inch touch display eventually arrived so I decided to have a break from reading and have a go at loading some examples to it. No joy ..  :(

After a little googling and a few searches here on the forum I found others with the same hardware and problem as myself HERE.

Same hardware, same problem. Any idea's guys?

EDIT.
+1 karma ChrisTenOne. That thread is a hive of info, thanks for posting it.

nickgammon

@Shadeyman - can you edit your original post and change the thread title? It seems to me we are straying from "Do People Create And Sell Sketches?".
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

ChrisTenone

Thanks @Shadeyman. You should send a Karma point to Robin2, the author of the Several Things thread.
What, I need to say something else too?

ghlawrence2000

Same hardware, same problem. Any idea's guys?
Not especially descriptive.........

Regards,

Graham
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

westfw

Quote
Feel free to ask questions here, once you have things SOMEWHAT more focused and narrowed down.
BTW, "here" meant "The Arduino Forums", using a separate appropriately titled topic for each focused question.
Not "here", as in "this particular thread" going on forever and switching from one probably to another as time goes on...
 :-)

Shadeyman

#44
Apr 12, 2016, 10:59 pm Last Edit: Apr 13, 2016, 12:05 am by Shadeyman
@Shadeyman - can you edit your original post and change the thread title? It seems to me we are straying from "Do People Create And Sell Sketches?".
BTW, "here" meant "The Arduino Forums", using a separate appropriately titled topic for each focused question.
Not "here", as in "this particular thread" going on forever and switching from one probably to another as time goes on...
 :-)
I originally posted this in "General" and had intended to post other threads that related to the parts I'd purchased. This thread got moved to "Due", I guess because I later intended to use a Due with the 7 inch display. So I just continued to use this thread. Apologies if the thread is in the wrong place but I didn't put it here. If I'm able I'll alter the title to something more appropriate. Any suggestions? And how do I do it?


Thanks @Shadeyman. You should send a Karma point to Robin2, the author of the Several Things thread.
Done.


Not especially descriptive.........

Regards,

Graham
I wasn't trying to be. My hardware and problem were exactly the same as the OP in the thread I linked to, I saw no point in repeating what the OP had written.


On the plus side I managed to find time to solve the problem, after uncommenting #define CTE_DUE_SHIELD 1 in HW_ARM_defines.h the display ran the demo perfectly.

I also managed to calibrate the touch screen after changing myTouch( 6, 5, 4, 3, 2) to myTouch( 6, 5, 32, 3, 2), PORTRAIT to LANDSCAPE. I'm now able to run the Quickpaint and Quickdraw demo's perfectly.

I've also been able to run the Cardinfo perfectly after closing jumper 8 on the shield.

Still a long way to go but I know more now than I did 6 weeks ago.


Go Up