Pages: [1]   Go Down
Author Topic: Ardublock  (Read 1688 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i on't know anything about programming so i am trying some of the graphical software i am have trouble while trying to use makeblock in ardublock i get errors saying different things was not declared can anyone help.or tell me a more easier graphical software to use. thanks     
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 615
Posts: 49388
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i get errors saying different things was not declared can anyone help
Without seeing your code or you error messages, no.

Quote
or tell me a more easier graphical software to use.
Nothing replaces using the old gray matter.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

okay here one of the errors.



Arduino: 1.5.5-r2 (Windows 7), Board: "Arduino Uno"

Using library SoftwareSerial in folder: C:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\SoftwareSerial (pre-1.5)

Using library Wire in folder: C:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\Wire (pre-1.5)



C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\variants\standard -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\SoftwareSerial -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\Wire C:\Users\Shop\AppData\Local\Temp\build3995423691032026541.tmp\sketch_feb16a.cpp -o C:\Users\Shop\AppData\Local\Temp\build3995423691032026541.tmp\sketch_feb16a.cpp.o

sketch_feb16a.ino:5: error: 'MeDCMotor' does not name a type
sketch_feb16a.ino:6: error: 'MeDCMotor' does not name a type
sketch_feb16a.ino: In function 'void loop()':
sketch_feb16a.ino:14: error: 'dcMotor1' was not declared in this scope
sketch_feb16a.ino:15: error: 'dcMotor2' was not declared in this scope


* Ardublock.jpg (149.9 KB, 960x540 - viewed 86 times.)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 615
Posts: 49388
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
sketch_feb16a.ino:5: error: 'MeDCMotor' does not name a type
Where do YOU think this type is defined? Not in any of the header files you've included.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 125
Posts: 7225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have no experience of Ardublock and it may work well in some circumstances - but obviously not in yours.

The problem with that sort of GUI programming simplifier is that it is hundreds of times harder to figure out when it doesn't do what you expect. You end up wasting your time debugging Ardublock rather than your project. This is an interesting article http://www.joelonsoftware.com/articles/LeakyAbstractions.html

Learning to program the Arduino is not difficult if you are interested. There are tonnes of simple examples and tutorials. And your sketches will be much easier to debug.

...R
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this is a sample that was posted with other samples on the ardublock website. so it sounds like i need to set down and learn to program in c++.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 125
Posts: 7225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
sounds like i need to set down and learn to program in c++.

I suggest you start with a goal of learning to understand and write small Arduino sketches. (It comes with many simple examples.)

That way you will absorb the use of simple C++ without taking on a large challenge like "learning to program in C++". As your knowledge evolves you can learn additional relevant bits of C++.

...R
Logged

Pages: [1]   Go Up
Jump to: